Skip to content

Commit 77e038f

Browse files
committed
nostr: add Request::multi_pay_invoice constructor
Signed-off-by: Yuki Kishimoto <[email protected]>
1 parent 1daef92 commit 77e038f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
* nostr: add `UnsignedEvent::ensure_id` method ([Yuki Kishimoto])
5151
* nostr: add missing `payload` arg to `EventBuilder::job_result` ([Yuki Kishimoto])
5252
* nostr: add `ConversationKey::new` ([Yuki Kishimoto])
53+
* nostr: add `Request::multi_pay_invoice` constructor ([Yuki Kishimoto])
5354
* pool: add `RelayPoolNotification::Authenticated` variant ([Yuki Kishimoto])
5455
* sdk: add `Client::gift_wrap_to` and `Client::send_private_msg_to` ([reyamir])
5556
* sdk: add option to autoconnect relay on `Client::add_relay` method call ([Yuki Kishimoto])

crates/nostr/src/nips/nip47.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,15 @@ impl Request {
409409
}
410410
}
411411

412+
/// Compose `multi_pay_invoice` request
413+
#[inline]
414+
pub fn multi_pay_invoice(params: MultiPayInvoiceRequestParams) -> Self {
415+
Self {
416+
method: Method::MultiPayInvoice,
417+
params: RequestParams::MultiPayInvoice(params),
418+
}
419+
}
420+
412421
/// Compose `pay_keysend` request
413422
#[inline]
414423
pub fn pay_keysend(params: PayKeysendRequestParams) -> Self {

0 commit comments

Comments
 (0)