Skip to content

Commit aee26ba

Browse files
committed
Fix Liquid swap
1 parent ce7cc91 commit aee26ba

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/app/liquidwallet/address.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
import { LiquidNetwork, LiquidAddressData } from "@breeztech/react-native-breez-sdk-liquid";
22

3+
import { SwapLiquidInterface } from "../swap/liquid";
4+
35
export const LiquidgetAddressData = async (network: LiquidNetwork, address: string): Promise<LiquidAddressData> => {
46
return await LiquidAddressData.getAddressData(network, address);
7+
8+
}
9+
10+
export const SwapLiquid = async (swap: SwapLiquidInterface) => {
11+
return await swap.swap();
512
}
613
export const LiquidNetworkUtils = {
714
LiquidgetAddressData,

src/app/swap/liquid.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { RefundableSwap as BreezSwapLiquid } from "@breeztech/react-native-breez
22

33
// Define an interface for the Liquid swap
44
export interface SwapLiquidInterface {
5+
swap(): unknown;
56
swapLiquid: BreezSwapLiquid;
67
}
78

0 commit comments

Comments
 (0)