Skip to content

Commit 596ebe0

Browse files
committed
feat: Rescue Key and other improvements
1 parent d80c306 commit 596ebe0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+4320
-636
lines changed

e2e/boltzClient.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ import { mnemonicToSeedSync } from "@scure/bip39";
33
import axios from "axios";
44
import fs from "fs";
55

6-
import type { RescuableSwap } from "../src/utils/boltzClient";
6+
import type { RestorableSwap } from "../src/utils/boltzClient";
77

88
const boltzEndpoint = "http://localhost:9001";
99

10-
export const getRescuableSwaps = async (rescueFile: string) => {
10+
export const getRestorableSwaps = async (rescueFile: string) => {
1111
const mnemonic = JSON.parse(fs.readFileSync(rescueFile, "utf8")).mnemonic;
1212
const seed = mnemonicToSeedSync(mnemonic);
1313

1414
return (
15-
await axios.post<RescuableSwap[]>(`${boltzEndpoint}/v2/swap/rescue`, {
15+
await axios.post<RestorableSwap[]>(`${boltzEndpoint}/v2/swap/restore`, {
1616
xpub: HDKey.fromMasterSeed(seed).publicExtendedKey,
1717
})
1818
).data;

e2e/refund/existingRescueFile.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

e2e/refund/refund.spec.ts

Lines changed: 0 additions & 140 deletions
This file was deleted.

0 commit comments

Comments
 (0)