Added Logic types for bitcoin hotwallet

This commit is contained in:
Rick Falkvinge
2015-10-07 00:12:58 +02:00
parent d751b75b6a
commit db04b2d205
4 changed files with 64 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Swarmops.Basic.Types.Financial;
namespace Swarmops.Logic.Financial
{
public class HotBitcoinAddress: BasicHotBitcoinAddress
{
private HotBitcoinAddress(BasicHotBitcoinAddress basic): base (basic)
{
// private ctor
}
public static HotBitcoinAddress FromBasic (BasicHotBitcoinAddress basic)
{
return new HotBitcoinAddress (basic); // invoke private ctor
}
}
}
@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Swarmops.Basic.Types.Financial;
namespace Swarmops.Logic.Financial
{
public class HotBitcoinAddressUnspent: BasicHotBitcoinAddressUnspent
{
private HotBitcoinAddressUnspent (BasicHotBitcoinAddressUnspent basic): base (basic)
{
// private ctor
}
public static HotBitcoinAddressUnspent FromBasic (BasicHotBitcoinAddressUnspent basic)
{
return new HotBitcoinAddressUnspent (basic);
}
}
}
@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Swarmops.Basic.Types.Financial;
using Swarmops.Logic.Support;
namespace Swarmops.Logic.Financial
{
public class HotBitcoinAddressUnspents: PluralBase<HotBitcoinAddressUnspents, HotBitcoinAddressUnspent, BasicHotBitcoinAddressUnspent>
{
// unfilled for now
}
}
+3
View File
@@ -119,6 +119,9 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Financial\BitcoinUtility.cs" />
<Compile Include="Financial\HotBitcoinAddress.cs" />
<Compile Include="Financial\HotBitcoinAddressUnspent.cs" />
<Compile Include="Financial\HotBitcoinAddressUnspents.cs" />
<Compile Include="Financial\IPayable.cs" />
<Compile Include="Resources\Logic.Financial.FinancialAccount.Designer.cs">
<AutoGen>True</AutoGen>