| | 1 | | using NBitcoin; |
| | 2 | |
|
| | 3 | | namespace NLightning.Domain.Models; |
| | 4 | |
|
| | 5 | | using ValueObjects; |
| | 6 | |
|
| | 7 | | /// <summary> |
| | 8 | | /// Represents routing information for a payment |
| | 9 | | /// </summary> |
| | 10 | | /// <param name="pubKey">The public key of the node</param> |
| | 11 | | /// <param name="shortChannelId">The short channel id of the channel</param> |
| | 12 | | /// <param name="feeBaseMsat">The base fee in millisatoshis</param> |
| | 13 | | /// <param name="feeProportionalMillionths">The proportional fee in millionths</param> |
| | 14 | | /// <param name="cltvExpiryDelta">The CLTV expiry delta</param> |
| 80 | 15 | | public sealed class RoutingInfo(PubKey pubKey, ShortChannelId shortChannelId, int feeBaseMsat, int feeProportionalMillio |
| | 16 | | { |
| | 17 | | /// <summary> |
| | 18 | | /// The public key of the node |
| | 19 | | /// </summary> |
| 140 | 20 | | public PubKey PubKey { get; } = pubKey; |
| | 21 | |
|
| | 22 | | /// <summary> |
| | 23 | | /// The short channel id of the channel |
| | 24 | | /// </summary> |
| 132 | 25 | | public ShortChannelId ShortChannelId { get; } = shortChannelId; |
| | 26 | |
|
| | 27 | | /// <summary> |
| | 28 | | /// The base fee in millisatoshis |
| | 29 | | /// </summary> |
| 156 | 30 | | public int FeeBaseMsat { get; } = feeBaseMsat; |
| | 31 | |
|
| | 32 | | /// <summary> |
| | 33 | | /// The proportional fee in millionths |
| | 34 | | /// </summary> |
| 144 | 35 | | public int FeeProportionalMillionths { get; } = feeProportionalMillionths; |
| | 36 | |
|
| | 37 | | /// <summary> |
| | 38 | | /// The CLTV expiry delta |
| | 39 | | /// </summary> |
| 144 | 40 | | public short CltvExpiryDelta { get; } = cltvExpiryDelta; |
| | 41 | | } |