From 49a8adf845ca5fb3c43895b870a564e9ffde37dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?22388o=E2=9A=A1=EF=B8=8F?= <83122757+22388o@users.noreply.github.com> Date: Mon, 11 Dec 2023 06:27:50 -0300 Subject: [PATCH 1/9] Update wallet_tool.js --- app/coinjoin/wallet_tool.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/coinjoin/wallet_tool.js b/app/coinjoin/wallet_tool.js index f5978204..72d6b332 100644 --- a/app/coinjoin/wallet_tool.js +++ b/app/coinjoin/wallet_tool.js @@ -8,8 +8,9 @@ function cjxt_single() { } function load_coinjoinxt_config() { - // Simulate loading the coinjoinxt config + // Loading the coinjoinxt config const coinjoinxt_config = new coinjoinxt_config + } From f21d4ad59e9af731cacc79077cf8a693fefa9dc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?22388o=E2=9A=A1=EF=B8=8F?= <83122757+22388o@users.noreply.github.com> Date: Mon, 18 Dec 2023 06:22:08 -0300 Subject: [PATCH 2/9] Update wallet_tool.js --- app/coinjoin/wallet_tool.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/coinjoin/wallet_tool.js b/app/coinjoin/wallet_tool.js index 72d6b332..b0c599b8 100644 --- a/app/coinjoin/wallet_tool.js +++ b/app/coinjoin/wallet_tool.js @@ -3,7 +3,7 @@ const bitcoin = require('bitcoinjs-lib'); // Simulate the required functions from jmclient and configure modules function cjxt_single() { - // Simulate the return value of cjxt_single function + // The return value of cjxt_single function return { homedir: '/path/to/homedir' }; } @@ -19,10 +19,10 @@ function wallet_tool_main(walletDir) { return 'Simulated wallet_tool_main result'; } -// Simulate Python's optparse library with command line arguments +// Optparse library with command line arguments const optionParser = new OptionParser(); -// Simulate Python's optparse options (if any) +// Optparse options (if any) // ... // Parse command line arguments (simulated in this example) From 31a6bbe1896d44a59046f3b4bdfdc5eb02d8f2f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?22388o=E2=9A=A1=EF=B8=8F?= <83122757+22388o@users.noreply.github.com> Date: Thu, 21 Dec 2023 07:46:30 -0300 Subject: [PATCH 3/9] Update wallet_tool.js --- app/coinjoin/wallet_tool.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/coinjoin/wallet_tool.js b/app/coinjoin/wallet_tool.js index b0c599b8..87c1c6a2 100644 --- a/app/coinjoin/wallet_tool.js +++ b/app/coinjoin/wallet_tool.js @@ -1,3 +1,8 @@ +import { coinjoinXT, Config}; +from '/app/coinjoin'; + + + const fs = require('fs'); const bitcoin = require('bitcoinjs-lib'); From 20c29969785f072d027e874254ed8fefc661d629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?22388o=E2=9A=A1=EF=B8=8F?= <83122757+22388o@users.noreply.github.com> Date: Thu, 21 Dec 2023 07:46:45 -0300 Subject: [PATCH 4/9] Update wallet_tool.js --- app/coinjoin/wallet_tool.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/coinjoin/wallet_tool.js b/app/coinjoin/wallet_tool.js index 87c1c6a2..aabe9f8f 100644 --- a/app/coinjoin/wallet_tool.js +++ b/app/coinjoin/wallet_tool.js @@ -1,8 +1,6 @@ import { coinjoinXT, Config}; from '/app/coinjoin'; - - const fs = require('fs'); const bitcoin = require('bitcoinjs-lib'); From 0074a3500a115e7171c0f7f84ca078538da083f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?22388o=E2=9A=A1=EF=B8=8F?= <83122757+22388o@users.noreply.github.com> Date: Tue, 9 Jan 2024 07:35:07 -0300 Subject: [PATCH 5/9] Update wallet_tool.js --- app/coinjoin/wallet_tool.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/coinjoin/wallet_tool.js b/app/coinjoin/wallet_tool.js index aabe9f8f..f8161a06 100644 --- a/app/coinjoin/wallet_tool.js +++ b/app/coinjoin/wallet_tool.js @@ -24,9 +24,10 @@ function wallet_tool_main(walletDir) { // Optparse library with command line arguments const optionParser = new OptionParser(); +const Parser = new Parser(); // Optparse options (if any) -// ... +// . // Parse command line arguments (simulated in this example) const options = optionParser.parse_args(); From 9e550d0139cfdf48d859dd2c3be5483954d24308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?22388o=E2=9A=A1=EF=B8=8F?= <83122757+22388o@users.noreply.github.com> Date: Thu, 18 Jan 2024 08:31:49 -0300 Subject: [PATCH 6/9] Update wallet_tool.js --- app/coinjoin/wallet_tool.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/coinjoin/wallet_tool.js b/app/coinjoin/wallet_tool.js index f8161a06..1bd64d0e 100644 --- a/app/coinjoin/wallet_tool.js +++ b/app/coinjoin/wallet_tool.js @@ -7,18 +7,20 @@ const bitcoin = require('bitcoinjs-lib'); // Simulate the required functions from jmclient and configure modules function cjxt_single() { // The return value of cjxt_single function + const hometDir = path.join(cjxt_single().homedir, 'wallets'); return { homedir: '/path/to/homedir' }; } function load_coinjoinxt_config() { // Loading the coinjoinxt config + const coinjoinDir= path.join(cjxt_single().homedir, 'wallets'); const coinjoinxt_config = new coinjoinxt_config } function wallet_tool_main(walletDir) { - // Simulate wallet_tool_main functionality + const walletDir = path.join(cjxt_single().homedir, 'wallets'); return 'Simulated wallet_tool_main result'; } @@ -26,9 +28,6 @@ function wallet_tool_main(walletDir) { const optionParser = new OptionParser(); const Parser = new Parser(); -// Optparse options (if any) -// . - // Parse command line arguments (simulated in this example) const options = optionParser.parse_args(); From 5d1f7a17179048f672683c1e44d21f4c16266377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?22388o=E2=9A=A1=EF=B8=8F?= <83122757+22388o@users.noreply.github.com> Date: Mon, 22 Jan 2024 06:10:13 -0300 Subject: [PATCH 7/9] Update wallet_tool.js --- app/coinjoin/wallet_tool.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/coinjoin/wallet_tool.js b/app/coinjoin/wallet_tool.js index 1bd64d0e..668806c2 100644 --- a/app/coinjoin/wallet_tool.js +++ b/app/coinjoin/wallet_tool.js @@ -18,6 +18,7 @@ function load_coinjoinxt_config() { } +function lightning_tool(walletDir) { function wallet_tool_main(walletDir) { const walletDir = path.join(cjxt_single().homedir, 'wallets'); From a32ac0c938b76ba0096b1dd599d2163cdf5a9994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?22388o=E2=9A=A1=EF=B8=8F?= <83122757+22388o@users.noreply.github.com> Date: Fri, 26 Jan 2024 14:45:40 -0300 Subject: [PATCH 8/9] Update wallet_tool.js --- app/coinjoin/wallet_tool.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/coinjoin/wallet_tool.js b/app/coinjoin/wallet_tool.js index 668806c2..6686ad2f 100644 --- a/app/coinjoin/wallet_tool.js +++ b/app/coinjoin/wallet_tool.js @@ -1,8 +1,6 @@ -import { coinjoinXT, Config}; -from '/app/coinjoin'; - +const {CoinjoinXT, Wallet} = require('wallet-toolsjs'); const fs = require('fs'); -const bitcoin = require('bitcoinjs-lib'); +const {PrivateKey,PublicKey,WalletDir} = require('bitcoinjs-lib'); // Simulate the required functions from jmclient and configure modules function cjxt_single() { From de305b7b5e987fcaabf44a013409847e6bc7c855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?22388o=E2=9A=A1=EF=B8=8F?= <83122757+22388o@users.noreply.github.com> Date: Fri, 26 Jan 2024 14:47:44 -0300 Subject: [PATCH 9/9] Update wallet_tool.js --- app/coinjoin/wallet_tool.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/coinjoin/wallet_tool.js b/app/coinjoin/wallet_tool.js index 6686ad2f..dfae4b9b 100644 --- a/app/coinjoin/wallet_tool.js +++ b/app/coinjoin/wallet_tool.js @@ -1,6 +1,7 @@ const {CoinjoinXT, Wallet} = require('wallet-toolsjs'); const fs = require('fs'); const {PrivateKey,PublicKey,WalletDir} = require('bitcoinjs-lib'); +const {ChannelIfo,Peer} = require('ldk-garbagecollected'); // Simulate the required functions from jmclient and configure modules function cjxt_single() { @@ -12,7 +13,8 @@ function cjxt_single() { function load_coinjoinxt_config() { // Loading the coinjoinxt config const coinjoinDir= path.join(cjxt_single().homedir, 'wallets'); - const coinjoinxt_config = new coinjoinxt_config + const coinjoinxt_config = new coinjoinxt_config; + const lightning_config = new lightning_confing; }