Skip to content

Commit

Permalink
Initial BOLT12 pays
Browse files Browse the repository at this point in the history
  • Loading branch information
223880 committed Nov 25, 2024
1 parent b0b4786 commit e87232b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ The other main features Firebolt supports are as follows:
## Roadmap

- [x] Miniscript (WIP)
- [ ] BOLT12
- [x] BOLT12 (WIP)
- [ ] Beta App (Android - via APK) in 2025
- [ ] Reproducible builds (Android)

Expand Down
1 change: 0 additions & 1 deletion src/app/lightning/receive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
ReceivePaymentResponse,
RecommendedFees
} from "@breeztech/react-native-breez-sdk";
import breez from "./breez";

// Async functions for handling requests
export const receiveOnchain = async (request: ReceiveOnchainRequest): Promise<ReceivePaymentResponse> => {
Expand Down
13 changes: 12 additions & 1 deletion src/app/lightning/send.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import {
CheckMessageResponse,
SendOnchainRequest,
SendPaymentRequest,
SendOnchainResponse
SendOnchainResponse,
} from '@breeztech/react-native-breez-sdk';

import { LnOffer, Bolt11, Bolt12Offer } from '@breeztech/react-native-breez-sdk-liquid';
export interface SendState {
payment: Payment | null;
backupStatus: BackupStatus | null;
Expand All @@ -22,6 +23,16 @@ export interface SendState {
sendOnchainResponse: SendOnchainResponse | null;
}

export interface LnOffer {
offer: string;
chains: string;
paths: LnOfferBlindedPath[];
minAmount: number;
bolt11: string;
bolt12Offer: string;
}


export const initialState: SendState = {
payment: null,
backupStatus: null,
Expand Down

0 comments on commit e87232b

Please sign in to comment.