From 249e2ca77ace7c0b5541d78aa85aa6d4b3ce7688 Mon Sep 17 00:00:00 2001 From: Aaron Fiore Date: Thu, 9 Oct 2025 16:21:23 -0700 Subject: [PATCH] container: hledger-flow: electrum: add mockup w/ lightning --- .../mockup/2025/electrum-history-wallet-3.csv | 13 ++++++++++++ .../electrum/wallet-3/electrum-wallet-3.rules | 20 +++++++++++++++++++ .../template/electrum/wallet-3/preprocess | 1 + 3 files changed, 34 insertions(+) create mode 100644 container/src/hledger-flow/accounts/electrum/template/electrum/wallet-3/1-in/mockup/2025/electrum-history-wallet-3.csv create mode 100644 container/src/hledger-flow/accounts/electrum/template/electrum/wallet-3/electrum-wallet-3.rules create mode 120000 container/src/hledger-flow/accounts/electrum/template/electrum/wallet-3/preprocess diff --git a/container/src/hledger-flow/accounts/electrum/template/electrum/wallet-3/1-in/mockup/2025/electrum-history-wallet-3.csv b/container/src/hledger-flow/accounts/electrum/template/electrum/wallet-3/1-in/mockup/2025/electrum-history-wallet-3.csv new file mode 100644 index 0000000..6d02ed7 --- /dev/null +++ b/container/src/hledger-flow/accounts/electrum/template/electrum/wallet-3/1-in/mockup/2025/electrum-history-wallet-3.csv @@ -0,0 +1,13 @@ +oc_transaction_hash,ln_payment_hash,label,confirmations,amount_chain_bc,amount_lightning_bc,fiat_value,network_fee_satoshi,fiat_fee,timestamp +a01c1a2deaa047ef3fd49c01360ddbab88e071a37e85d5446a2a713efa6e5500,,Testnet3 faucet (income),1102,0.00128436,0.,,0,,2025-10-02 19:18:11 +1802953f7f1889fa8034a8170e5b709100f67dad2bae3a110bb80287b53b2811,,Testnet3 faucet (income),1102,0.00168871,0.,,0,,2025-10-02 19:18:11 +db9a16c4661ef161f7bd099ab4c65391dbd6b220055365892ee6958b3d9b431f,,Testnet3 faucet (income),1102,0.00181488,0.,,0,,2025-10-02 19:18:11 +e522cf029812d0b9e7e38e66eb069314b14978d5473faeb7302fdd75366475eb,,Open channel 4735502x1x2,1088,-0.00200634,0.002,0.00,634,,2025-10-02 19:56:35 +fb4c75494cabda8b066d13a5b7d2df4392cd67707ddbf7845ecfff6520a072c2,,Close channel 4735502x1x2,964,0.00198197,-0.002,0.00,1803,,2025-10-03 15:52:55 +f6f208349a6c5bac419bf2258b599526e3ad1b073204c4feee1c8fdd04567fea,,Testnet3 faucet (donate),963,-0.00102797,0.,,2797,,2025-10-03 16:12:56 +6333ecd263e5a2c8e20764ff47a1d95d13257da7593e61244a0a9eacad558af2,,Open channel 4735630x17x2,960,-0.00204941,0.002,0.00,4941,,2025-10-03 17:18:11 +,e801e7b766542f5a2b7e38b0f4bcc585333bc66a0ca35e978157b45c2490f0b5,1 Blockaccino,,0.,-0.00000011,,10,,2025-10-03 19:02:50 +,c77a7035ae00f96a6e054e98412f7dcdebae606dd7e536e249bea76f7dbf3213,1 Scala Chip Frappuccino,,0.,-0.0000505,,50,,2025-10-03 19:04:01 +83f0a0d8bec9e6e549c30b88f3dc50a6f11c9782361c9f394de540925b5b465c,,,933,-0.0000212,0.,,2450,,2025-10-04 00:46:02 +,,Close channel 4735630x17x2,,0.,-0.00194939,,0,,2025-10-04 00:46:02 +4bf6e24b9a6d8f82f7c320a88d667b46c01ccba7bd0bc425417221005c0a9c26,,,205,0.001906,0.,,1572,,2025-10-08 14:03:33 diff --git a/container/src/hledger-flow/accounts/electrum/template/electrum/wallet-3/electrum-wallet-3.rules b/container/src/hledger-flow/accounts/electrum/template/electrum/wallet-3/electrum-wallet-3.rules new file mode 100644 index 0000000..c785f18 --- /dev/null +++ b/container/src/hledger-flow/accounts/electrum/template/electrum/wallet-3/electrum-wallet-3.rules @@ -0,0 +1,20 @@ +# docker-finance | modern accounting for the power-user +# +# Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC) +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +include ../../electrum-shared.rules + +# vim: sw=2 sts=2 si ai et diff --git a/container/src/hledger-flow/accounts/electrum/template/electrum/wallet-3/preprocess b/container/src/hledger-flow/accounts/electrum/template/electrum/wallet-3/preprocess new file mode 120000 index 0000000..ea94467 --- /dev/null +++ b/container/src/hledger-flow/accounts/electrum/template/electrum/wallet-3/preprocess @@ -0,0 +1 @@ +../../electrum-shared.bash \ No newline at end of file