From d3959a1c1f9c50aef5fbf418350eb3626c39f84c Mon Sep 17 00:00:00 2001 From: Roland <33993199+rolznz@users.noreply.github.com> Date: Sat, 11 Nov 2023 22:20:26 +0700 Subject: [PATCH 1/4] doc: update NWC docs to mention additional supported webln methods --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0ee22c4..e107ed6 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Nostr Wallet Connect is an open protocol enabling applications to interact with The Alby JS SDK allows you to easily integrate Nostr Wallet Connect into any JavaScript based application. -The `NostrWebLNProvider` exposes the [WebLN](webln.guide/) sendPayment interface to execute lightning payments through Nostr Wallet Connect. +The `NostrWebLNProvider` exposes the [WebLN](webln.guide/) interface to execute lightning wallet functionality through Nostr Wallet Connect, such as sending payments, making invoices and getting the node balance. (Note: in the future more WebLN functions will be added to Nostr Wallet Connect) @@ -69,7 +69,7 @@ if (!window.webln) { ### NostrWebLNProvider Functions -The goal of the Nostr Wallet Connect provider is to be API compatible with [webln](https://www.webln.guide/). Currently not all methods are supported and only `sendPayment` is specified. +The goal of the Nostr Wallet Connect provider is to be API compatible with [webln](https://www.webln.guide/). Currently not all methods are supported - see the examples/nwc directory for a list of supported methods. #### `static withNewSecret()` From 07d68e9fa952b71b5ee75540f66ab59cf1b524f5 Mon Sep 17 00:00:00 2001 From: Roland Bewick Date: Mon, 13 Nov 2023 21:50:58 +0700 Subject: [PATCH 2/4] docs: add react native project link --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index e107ed6..f72df01 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,9 @@ catch (e) { } ``` +#### React Native (Expo) +Look at our [NWC React Native Expo Demo app](https://github.com/getAlby/nwc-react-native-expo) for how to use NWC in a React Native expo project. + #### For Node.js To use this on Node.js you first must install `websocket-polyfill` and import it: From bde3c620b21b1df3e0e862be680b4e2d92e542a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Aaron?= Date: Wed, 15 Nov 2023 16:22:35 +0100 Subject: [PATCH 3/4] feat: add preimage --- src/types.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types.ts b/src/types.ts index a0b6fee..edc2fe4 100644 --- a/src/types.ts +++ b/src/types.ts @@ -206,6 +206,7 @@ export type Invoice = { payer_pubkey?: string; payment_hash: string; payment_request: string; + preimage: string; r_hash_str: string; settled: boolean; settled_at: string; From bb977ab2f15b187b20de1c16f618e612bfc9b10c Mon Sep 17 00:00:00 2001 From: Roland Bewick Date: Thu, 16 Nov 2023 21:42:40 +0700 Subject: [PATCH 4/4] chore: bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8d98310..6abffa4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@getalby/sdk", - "version": "2.5.0", + "version": "2.6.0", "description": "The SDK to integrate with Nostr Wallet Connect and the Alby API", "repository": "https://github.com/getAlby/js-sdk.git", "bugs": "https://github.com/getAlby/js-sdk/issues",