1
0

implement NIP47 plugin

This commit is contained in:
f321x
2025-03-02 20:07:00 +01:00
parent fe11fa3f4f
commit 253ab6849a
12 changed files with 1329 additions and 36 deletions

View File

@@ -2307,6 +2307,7 @@ class LightningHistoryItem(NamedTuple):
group_id: Optional[str]
timestamp: int
label: str
direction: Optional[int]
def to_dict(self):
return {
'type': self.type,
@@ -2319,4 +2320,5 @@ class LightningHistoryItem(NamedTuple):
'preimage': self.preimage,
'group_id': self.group_id,
'ln_value': Satoshis(Decimal(self.amount_msat) / 1000),
'direction': self.direction,
}