2021-04-13 10:36:49 +02:00
|
|
|
using System;
|
|
|
|
using NBitcoin;
|
|
|
|
|
|
|
|
namespace BTCPayServer.Data
|
|
|
|
{
|
|
|
|
public class AddressClaimDestination : IBitcoinLikeClaimDestination
|
|
|
|
{
|
2021-12-31 16:59:02 +09:00
|
|
|
public BitcoinAddress _bitcoinAddress;
|
2021-04-13 10:36:49 +02:00
|
|
|
|
|
|
|
public AddressClaimDestination(BitcoinAddress bitcoinAddress)
|
|
|
|
{
|
2021-12-28 17:39:54 +09:00
|
|
|
ArgumentNullException.ThrowIfNull(bitcoinAddress);
|
2021-04-13 10:36:49 +02:00
|
|
|
_bitcoinAddress = bitcoinAddress;
|
|
|
|
}
|
|
|
|
public BitcoinAddress Address => _bitcoinAddress;
|
|
|
|
public override string ToString()
|
|
|
|
{
|
|
|
|
return _bitcoinAddress.ToString();
|
|
|
|
}
|
2021-10-18 05:37:59 +02:00
|
|
|
|
2021-10-21 17:43:02 +02:00
|
|
|
public string Id => ToString();
|
2021-10-18 05:37:59 +02:00
|
|
|
public decimal? Amount => null;
|
2021-04-13 10:36:49 +02:00
|
|
|
}
|
|
|
|
}
|