Skip to content

Commit

Permalink
Fix Liquid swap
Browse files Browse the repository at this point in the history
  • Loading branch information
22388o committed Jan 22, 2025
1 parent ce7cc91 commit aee26ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/liquidwallet/address.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import { LiquidNetwork, LiquidAddressData } from "@breeztech/react-native-breez-sdk-liquid";

import { SwapLiquidInterface } from "../swap/liquid";

export const LiquidgetAddressData = async (network: LiquidNetwork, address: string): Promise<LiquidAddressData> => {
return await LiquidAddressData.getAddressData(network, address);

}

export const SwapLiquid = async (swap: SwapLiquidInterface) => {
return await swap.swap();
}
export const LiquidNetworkUtils = {
LiquidgetAddressData,
Expand Down
1 change: 1 addition & 0 deletions src/app/swap/liquid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { RefundableSwap as BreezSwapLiquid } from "@breeztech/react-native-breez

// Define an interface for the Liquid swap
export interface SwapLiquidInterface {
swap(): unknown;
swapLiquid: BreezSwapLiquid;
}

Expand Down

0 comments on commit aee26ba

Please sign in to comment.