Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
22388o committed Jun 11, 2024
1 parent 0dc0441 commit f512250
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions src/app/lightning/send.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Balance, Payment, BackupStatus, BitcoinAddressData, CheckMessageRequest} from 'react-native-breez-sdk';
import {Balance, Payment, BackupStatus, BitcoinAddressData, CheckMessageRequest, ClosedChannelPaymentDetails, CheckMessageResponse, SendPaymentInfo} from 'react-native-breez-sdk';

export default class Breez {
static async getBalance(): Promise<Balance> {
Expand All @@ -14,6 +14,9 @@ export async getPayment(): Promise<Payment> {
static async getBackupStatus(): Promise<BackupStatus> {
return await BreezNative.getBackupStatus();
}
static async getBitcoinAddress(): Promise<string> {
return await BreezNative.getBitcoinAddress();
}
export async getBitcoinAddressData(): Promise<BitcoinAddressData> {
return await BreezNative.getBitcoinAddressData();
}
Expand All @@ -22,4 +25,19 @@ export async checkMessage(request: CheckMessageRequest): Promise<boolean> {
}
static async getVersion(): Promise<string> {
return await BreezNative.getVersion();
}
}
export async getClosedChannelPaymentDetails(): Promise<ClosedChannelPaymentDetails> {
return await BreezNative.getClosedChannelPaymentDetails();
}
export async checkMessageResponse(request: CheckMessageResponse): Promise<boolean> {
return await BreezNative.checkMessageResponse(request);
}
export async sendPayment(request: SendPaymentInfo): Promise<boolean> {
readonly request: SendPaymentInfo = {
amount: 1000000,
address: '1234567890',
memo: 'test',
paymentId: '1234567890',
paymentPreimage: '1234567890'
}
}

0 comments on commit f512250

Please sign in to comment.