Skip to content

Commit

Permalink
[ci] refs #7 Add changes by @stdevHan
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevYuniers committed Dec 6, 2018
2 parents d700790 + 342e5f3 commit 0df4029
Show file tree
Hide file tree
Showing 139 changed files with 37,613 additions and 52 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.


# User-specific files
*.suo
*.user
Expand Down Expand Up @@ -68,6 +69,10 @@ artifacts/
*.pidb
*.svclog
*.scc
*.o
*.dll
*.so
*.exe

# Chutzpah Test files
_Chutzpah*
Expand Down Expand Up @@ -248,6 +253,10 @@ paket-files/
# JetBrains Rider
.idea/
*.sln.iml
testrunner/

# VSCODE
.angulardoc.json

#Temporary files
*.swp
Expand Down
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ language: csharp
solution: LibskycoinNet.sln

install:
- nuget restore LibskycoinNet.sln
- nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner
- 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

script:
- msbuild /p:Configuration=Release LibskycoinNet.sln
- mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe ./LibskycoinNetTest/bin/Release/LibskycoinNetTest.dll
- make test

notifications:
email: false
Expand Down
102 changes: 101 additions & 1 deletion LibskycoinNet/LibskycoinNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,107 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Skycoin.cs" />
<Compile Include="skycoin\GoInterface.cs" />
<Compile Include="skycoin\GoSlice.cs" />
<Compile Include="skycoin\SWIGTYPE_p_AddressUxOuts_Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_App__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_BOOL.cs" />
<Compile Include="skycoin\SWIGTYPE_p_BalanceResult_Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_BlockBody__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Block__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_BuildInfo_Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Client__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Config__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Context__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_CreateTransactionResponse__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_CreatedTransactionInput__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_CreatedTransactionOutput__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_CreatedTransaction__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_FeeCalculator.cs" />
<Compile Include="skycoin\SWIGTYPE_p_GoSlice_.cs" />
<Compile Include="skycoin\SWIGTYPE_p_GoStringMap_.cs" />
<Compile Include="skycoin\SWIGTYPE_p_GoString_.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Number_Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Options__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_PasswordReader__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_ReadableEntry__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_ReadableWallet__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Signature_Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_SortableTransactionResult_Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_SpendResult_Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_StatusResult_Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Strings__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_TransactionResult_Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Transaction__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Transactions__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_WalletResponse__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Wallet__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Wallets__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_WebRpcClient__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_long_long.cs" />
<Compile Include="skycoin\SWIGTYPE_p_p_coin__Block.cs" />
<Compile Include="skycoin\SWIGTYPE_p_p_coin__Transaction.cs" />
<Compile Include="skycoin\SWIGTYPE_p_unsigned_char.cs" />
<Compile Include="skycoin\SWIGTYPE_p_unsigned_int.cs" />
<Compile Include="skycoin\SWIGTYPE_p_unsigned_long_long.cs" />
<Compile Include="skycoin\SWIGTYPE_p_unsigned_short.cs" />
<Compile Include="skycoin\SWIGTYPE_p_void.cs" />
<Compile Include="skycoin\_GoString_.cs" />
<Compile Include="skycoin\api__RichlistParams.cs" />
<Compile Include="skycoin\cipher_Checksum.cs" />
<Compile Include="skycoin\cipher_PubKey.cs" />
<Compile Include="skycoin\cipher_PubKeys.cs" />
<Compile Include="skycoin\cipher_Ripemd160.cs" />
<Compile Include="skycoin\cipher_SHA256.cs" />
<Compile Include="skycoin\cipher_SHA256s.cs" />
<Compile Include="skycoin\cipher_SecKey.cs" />
<Compile Include="skycoin\cipher_SecKeys.cs" />
<Compile Include="skycoin\cipher_Sig.cs" />
<Compile Include="skycoin\cipher__Address.cs" />
<Compile Include="skycoin\cli__SendAmount.cs" />
<Compile Include="skycoin\coin_UxOutArray.cs" />
<Compile Include="skycoin\coin__Block.cs" />
<Compile Include="skycoin\coin__BlockBody.cs" />
<Compile Include="skycoin\coin__BlockHeader.cs" />
<Compile Include="skycoin\coin__SignedBlock.cs" />
<Compile Include="skycoin\coin__Transaction.cs" />
<Compile Include="skycoin\coin__TransactionOutput.cs" />
<Compile Include="skycoin\coin__UxBody.cs" />
<Compile Include="skycoin\coin__UxHead.cs" />
<Compile Include="skycoin\coin__UxOut.cs" />
<Compile Include="skycoin\encrypt__ScryptChacha20poly1305.cs" />
<Compile Include="skycoin\httphelper__Address.cs" />
<Compile Include="skycoin\skycoin.cs" />
<Compile Include="skycoin\skycoinPINVOKE.cs" />
<Compile Include="skycoin\wallet__Balance.cs" />
<Compile Include="skycoin\wallet__BalancePair.cs" />
<Compile Include="skycoin\wallet__Entry.cs" />
<Compile Include="skycoin\wallet__Note.cs" />
<Compile Include="skycoin\wallet__ReadableNote.cs" />
<Compile Include="skycoin\wallet__UxBalance.cs" />
<Compile Include="skycoin\SWIGTYPE_p_int.cs" />
<Compile Include="skycoin\SWIGTYPE_p_p_void.cs" />
<Compile Include="skycoin\SWIGTYPE_p_p_json_value.cs" />
<Compile Include="skycoin\wallet_register.cs" />
<Compile Include="skycoin\SWIGTYPE_p_FILE.cs" />
<Compile Include="skycoin\cipher_Addresses.cs" />
<Compile Include="skycoin\cipher__BitcoinAddress.cs" />
<Compile Include="skycoin\SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle.cs" />
<Compile Include="skycoin\api__NetworkConnectionsFilter.cs" />
<Compile Include="skycoin\SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int.cs" />
<Compile Include="skycoin\SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int.cs" />
<Compile Include="skycoin\SWIGTYPE_p_a_4__unsigned_char.cs" />
<Compile Include="skycoin\SWIGTYPE_p_p_GoSlice_.cs" />
<Compile Include="skycoin\SWIGTYPE_p_GoUint32_.cs" />
<Compile Include="skycoin\SWIGTYPE_p_GoUint64_.cs" />
<Compile Include="skycoin\SWIGTYPE_p_GoUint8_.cs" />
<Compile Include="skycoin\SWIGTYPE_p_a_4__GoUint8_.cs" />
<Compile Include="skycoin\SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_.cs" />
<Compile Include="skycoin\SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_.cs" />
</ItemGroup>
<ItemGroup>
<None Include="skycoin\skycoinnet_wrap.c" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
Expand Down
14 changes: 0 additions & 14 deletions LibskycoinNet/Skycoin.cs

This file was deleted.

70 changes: 70 additions & 0 deletions LibskycoinNet/skycoin/Fee_Calculator.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (http://www.swig.org).
// Version 3.0.12
//
// Do not make changes to this file unless you know what you are doing--modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------

namespace skycoin {

public class Fee_Calculator : global::System.IDisposable {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
protected bool swigCMemOwn;

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(Fee_Calculator obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}

~Fee_Calculator() {
Dispose();
}

public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
skycoinPINVOKE.delete_Fee_Calculator(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_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));
}
get {
global::System.IntPtr cPtr = skycoinPINVOKE.get_Fee_Calculator_callback(swigCPtr);
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;
}
}

public SWIGTYPE_p_void context {
set {
skycoinPINVOKE.set_Fee_Calculator_context(swigCPtr, SWIGTYPE_p_void.getCPtr(value));
}
get {
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 Fee_Calculator() : this(skycoinPINVOKE.new_Fee_Calculator(), true) {
}

}

}
70 changes: 70 additions & 0 deletions LibskycoinNet/skycoin/GoInterface.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (http://www.swig.org).
// Version 3.0.12
//
// 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.set_GoInterface_t(swigCPtr, SWIGTYPE_p_void.getCPtr(value));
}
get {
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;
}
}

public SWIGTYPE_p_void v {
set {
skycoinPINVOKE.set_GoInterface_v(swigCPtr, SWIGTYPE_p_void.getCPtr(value));
}
get {
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;
}
}

public GoInterface() : this(skycoinPINVOKE.new_GoInterface(), true) {
}

}

}
Loading

0 comments on commit 0df4029

Please sign in to comment.