Skip to content

Commit b432e85

Browse files
authored
Merge pull request #204 from MostroP2P/feature/new-about-screen
Implemented the new About Screen
2 parents 3c9d909 + 1ae60d0 commit b432e85

File tree

6 files changed

+1017
-144
lines changed

6 files changed

+1017
-144
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Mostro team
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

lib/features/mostro/mostro_instance.dart

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ class MostroInstance {
1313
final int holdInvoiceExpirationWindow;
1414
final int holdInvoiceCltvDelta;
1515
final int invoiceExpirationWindow;
16+
final String lndVersion;
17+
final String lndNodePublicKey;
18+
final String lndCommitHash;
19+
final String lndNodeAlias;
20+
final String supportedChains;
21+
final String supportedNetworks;
22+
final String lndNodeUri;
1623

1724
MostroInstance(
1825
this.pubKey,
@@ -27,6 +34,13 @@ class MostroInstance {
2734
this.holdInvoiceExpirationWindow,
2835
this.holdInvoiceCltvDelta,
2936
this.invoiceExpirationWindow,
37+
this.lndVersion,
38+
this.lndNodePublicKey,
39+
this.lndCommitHash,
40+
this.lndNodeAlias,
41+
this.supportedChains,
42+
this.supportedNetworks,
43+
this.lndNodeUri,
3044
);
3145

3246
factory MostroInstance.fromEvent(NostrEvent event) {
@@ -43,6 +57,13 @@ class MostroInstance {
4357
event.holdInvoiceExpirationWindow,
4458
event.holdInvoiceCltvDelta,
4559
event.invoiceExpirationWindow,
60+
event.lndVersion,
61+
event.lndNodePublicKey,
62+
event.lndCommitHash,
63+
event.lndNodeAlias,
64+
event.supportedChains,
65+
event.supportedNetworks,
66+
event.lndNodeUri,
4667
);
4768
}
4869
}
@@ -68,4 +89,11 @@ extension MostroInstanceExtensions on NostrEvent {
6889
int.parse(_getTagValue('hold_invoice_cltv_delta'));
6990
int get invoiceExpirationWindow =>
7091
int.parse(_getTagValue('invoice_expiration_window'));
92+
String get lndVersion => _getTagValue('lnd_version');
93+
String get lndNodePublicKey => _getTagValue('lnd_node_pubkey');
94+
String get lndCommitHash => _getTagValue('lnd_commit_hash');
95+
String get lndNodeAlias => _getTagValue('lnd_node_alias');
96+
String get supportedChains => _getTagValue('lnd_chains');
97+
String get supportedNetworks => _getTagValue('lnd_networks');
98+
String get lndNodeUri => _getTagValue('lnd_uris');
7199
}

0 commit comments

Comments
 (0)