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