forked from kevinkinnett/BitSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWalletEntry.cs
30 lines (23 loc) · 855 Bytes
/
WalletEntry.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using BitSharp.Common.ExtensionMethods;
using BitSharp.Core.Monitor;
using System;
using System.Collections.Immutable;
namespace BitSharp.Wallet
{
public class WalletEntry
{
public WalletEntry(IImmutableList<MonitoredWalletAddress> addresses, EnumWalletEntryType type, ChainPosition chainPosition, UInt64 value)
{
Addresses = addresses;
Type = type;
ChainPosition = chainPosition;
Value = value;
}
public IImmutableList<MonitoredWalletAddress> Addresses { get; }
public EnumWalletEntryType Type { get; }
public ChainPosition ChainPosition { get; }
public UInt64 Value { get; }
public decimal BtcValue => this.Value / 100m.MILLION();
public decimal BitValue => this.Value / 100m;
}
}