File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1
1
import { LiquidNetwork , LiquidAddressData } from "@breeztech/react-native-breez-sdk-liquid" ;
2
2
3
+ import { SwapLiquidInterface } from "../swap/liquid" ;
4
+
3
5
export const LiquidgetAddressData = async ( network : LiquidNetwork , address : string ) : Promise < LiquidAddressData > => {
4
6
return await LiquidAddressData . getAddressData ( network , address ) ;
7
+
8
+ }
9
+
10
+ export const SwapLiquid = async ( swap : SwapLiquidInterface ) => {
11
+ return await swap . swap ( ) ;
5
12
}
6
13
export const LiquidNetworkUtils = {
7
14
LiquidgetAddressData,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { RefundableSwap as BreezSwapLiquid } from "@breeztech/react-native-breez
2
2
3
3
// Define an interface for the Liquid swap
4
4
export interface SwapLiquidInterface {
5
+ swap ( ) : unknown ;
5
6
swapLiquid : BreezSwapLiquid ;
6
7
}
7
8
You can’t perform that action at this time.
0 commit comments