From f7d2eff156b337bcf0ee36f9a36c3cd1edcae2ea Mon Sep 17 00:00:00 2001 From: Evan Kaloudis Date: Mon, 1 Apr 2024 16:41:01 -0400 Subject: [PATCH] chantools: sweepremoteclosed --- Navigation.ts | 10 + locales/en.json | 6 + views/Settings/EmbeddedNode/Advanced.tsx | 23 ++ .../Chantools/Sweepremoteclosed.tsx | 231 ++++++++++++++++++ .../Settings/EmbeddedNode/Chantools/index.tsx | 62 +++++ 5 files changed, 332 insertions(+) create mode 100644 views/Settings/EmbeddedNode/Chantools/Sweepremoteclosed.tsx create mode 100644 views/Settings/EmbeddedNode/Chantools/index.tsx diff --git a/Navigation.ts b/Navigation.ts index 153dcf3d6..151f422a4 100644 --- a/Navigation.ts +++ b/Navigation.ts @@ -125,6 +125,10 @@ import LspExplanationWrappedInvoices from './views/Explanations/LspExplanationWr import LspExplanationOverview from './views/Explanations/LspExplanationOverview'; import RestoreChannelBackups from './views/Settings/EmbeddedNode/RestoreChannelBackups'; +// Chantools +import Chantools from './views/Settings/EmbeddedNode/Chantools'; +import Sweepremoteclosed from './views/Settings/EmbeddedNode/Chantools/Sweepremoteclosed'; + import RawTxHex from './views/RawTxHex'; import CustodialWalletWarning from './views/Settings/CustodialWalletWarning'; @@ -450,6 +454,12 @@ const AppScenes = { }, CustodialWalletWarning: { screen: CustodialWalletWarning + }, + Chantools: { + screen: Chantools + }, + Sweepremoteclosed: { + screen: Sweepremoteclosed } }; diff --git a/locales/en.json b/locales/en.json index 5c792bafd..5067d6495 100644 --- a/locales/en.json +++ b/locales/en.json @@ -1033,6 +1033,12 @@ "views.Settings.CustodialWalletWarning.graph3": "ZEUS has the ability to create a self-custodial wallet in the app. This wallet provides you with a 24-word seed phrase that gives you full control of your funds.", "views.Settings.CustodialWalletWarning.graph4": "To get started with your own self-custodial wallet, press the button below, and hit the 'Create mainnet wallet' button on the next screen.", "views.Settings.CustodialWalletWarning.create": "Create self-custodial wallet", + "views.Settings.EmbeddedNode.Chantools.Sweepremoteclosed.seed": "Seed phrase", + "views.Settings.EmbeddedNode.Chantools.Sweepremoteclosed.recoveryWindow": "Recovery window", + "views.Settings.EmbeddedNode.Chantools.Sweepremoteclosed.sweepAddr": "Sweep address", + "views.Settings.EmbeddedNode.Chantools.Sweepremoteclosed.apiUrl": "API URL", + "views.Settings.EmbeddedNode.Chantools.Sweepremoteclosed.customApiUrl": "Custom API URL", + "views.Settings.EmbeddedNode.Chantools.Sweepremoteclosed.start": "Start sweep", "views.LspExplanation.text1": "Zeus is a self-custodial lightning wallet. In order to send or receive a lightning payment, you must open a lightning payment channel, which has a setup fee.", "views.LspExplanation.text2": "Once the channel is set up, you'll only have to pay normal network fees until your channel exhausts its capacity.", "views.LspExplanation.buttonText": "Learn more about liquidity", diff --git a/views/Settings/EmbeddedNode/Advanced.tsx b/views/Settings/EmbeddedNode/Advanced.tsx index 9e05a9e93..cd4ad8ff4 100644 --- a/views/Settings/EmbeddedNode/Advanced.tsx +++ b/views/Settings/EmbeddedNode/Advanced.tsx @@ -354,6 +354,29 @@ export default class EmbeddedNodeAdvancedSettings extends React.Component< + <> + navigation.navigate('Chantools')} + > + + + chantools + + + + + <>