| | 1 | | namespace NLightning.Domain.Bitcoin.Transactions.Outputs; |
| | 2 | |
|
| | 3 | | using Crypto.ValueObjects; |
| | 4 | | using Enums; |
| | 5 | | using Interfaces; |
| | 6 | | using Money; |
| | 7 | | using ValueObjects; |
| | 8 | |
|
| | 9 | | public class FundingOutputInfo : IOutputInfo |
| | 10 | | { |
| 136 | 11 | | public LightningMoney Amount { get; } |
| 464 | 12 | | public CompactPubKey LocalFundingPubKey { get; set; } |
| 464 | 13 | | public CompactPubKey RemoteFundingPubKey { get; set; } |
| | 14 | |
|
| 0 | 15 | | public OutputType OutputType => OutputType.Funding; |
| 840 | 16 | | public TxId? TransactionId { get; set; } |
| 600 | 17 | | public ushort? Index { get; set; } |
| | 18 | |
|
| 336 | 19 | | public FundingOutputInfo(LightningMoney amount, CompactPubKey localFundingPubKey, CompactPubKey remoteFundingPubKey) |
| | 20 | | { |
| 336 | 21 | | Amount = amount; |
| 336 | 22 | | LocalFundingPubKey = localFundingPubKey; |
| 336 | 23 | | RemoteFundingPubKey = remoteFundingPubKey; |
| 336 | 24 | | } |
| | 25 | |
|
| | 26 | | public FundingOutputInfo(LightningMoney amount, CompactPubKey localFundingPubKey, CompactPubKey remoteFundingPubKey, |
| | 27 | | TxId transactionId, ushort index) |
| 64 | 28 | | : this(amount, localFundingPubKey, remoteFundingPubKey) |
| | 29 | | { |
| 64 | 30 | | TransactionId = transactionId; |
| 64 | 31 | | Index = index; |
| 64 | 32 | | } |
| | 33 | | } |