mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 22:46:49 +01:00
* Create new tables * wip * wip * Refactor LegacyLabel * Remove LabelFactory * Add migration * wip * wip * Add pull-payment attachment to tx * Address kukks points
36 lines
1.2 KiB
C#
36 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using BTCPayServer.JsonConverters;
|
|
using NBitcoin;
|
|
using NBitcoin.JsonConverters;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
{
|
|
public class OnChainWalletTransactionData
|
|
{
|
|
[JsonConverter(typeof(UInt256JsonConverter))]
|
|
public uint256 TransactionHash { get; set; }
|
|
|
|
public string Comment { get; set; }
|
|
#pragma warning disable CS0612 // Type or member is obsolete
|
|
public Dictionary<string, LabelData> Labels { get; set; } = new Dictionary<string, LabelData>();
|
|
#pragma warning restore CS0612 // Type or member is obsolete
|
|
|
|
[JsonConverter(typeof(NumericStringJsonConverter))]
|
|
public decimal Amount { get; set; }
|
|
|
|
[JsonConverter(typeof(UInt256JsonConverter))]
|
|
public uint256 BlockHash { get; set; }
|
|
|
|
public long? BlockHeight { get; set; }
|
|
|
|
public long Confirmations { get; set; }
|
|
|
|
[JsonConverter(typeof(DateTimeToUnixTimeConverter))]
|
|
public DateTimeOffset Timestamp { get; set; }
|
|
|
|
[JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
|
public TransactionStatus Status { get; set; }
|
|
}
|
|
}
|