From a49eb3b0994bcc9f4c59ec9a2f115dd78e1ac1a1 Mon Sep 17 00:00:00 2001 From: Evan Kaloudis Date: Mon, 1 Apr 2024 16:35:52 -0400 Subject: [PATCH] chantools: sweepremoteclosed --- Navigation.ts | 10 + locales/en.json | 6 + views/Settings/EmbeddedNode/Advanced.tsx | 23 ++ .../Chantools/Sweepremoteclosed.tsx | 207 ++++++++++++++++++ .../Settings/EmbeddedNode/Chantools/index.tsx | 62 ++++++ 5 files changed, 308 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 153dcf3d61..151f422a41 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 5c792bafd7..5067d64957 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 9e05a9e93e..cd4ad8ff40 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 + + + + + <>