File tree Expand file tree Collapse file tree 4 files changed +14
-0
lines changed
nostr-sdk-ffi/src/protocol/nips
nostr-sdk-js/src/protocol/nips Expand file tree Collapse file tree 4 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 91
91
* nostr: add ` EventBuilder::dedup_tags ` method ([ Yuki Kishimoto] )
92
92
* nostr: impl ` FromIterator<Tag> ` for ` Tags ` ([ Yuki Kishimoto] )
93
93
* nostr: add ` EventDeletionRequest ` struct ([ Yuki Kishimoto] )
94
+ * nostr: add ` notifications ` field to NIP47 ` GetInfoResponse ` ([ Yuki Kishimoto] )
94
95
* pool: event verification cache ([ Yuki Kishimoto] )
95
96
* pool: add ` AdmitPolicy ` trait ([ Yuki Kishimoto] )
96
97
* ffi: add Mac Catalyst support in Swift package ([ Yuki Kishimoto] )
Original file line number Diff line number Diff line change @@ -734,6 +734,8 @@ pub struct GetInfoResponse {
734
734
pub block_hash : String ,
735
735
/// Available methods for this connection
736
736
pub methods : Vec < String > ,
737
+ /// List of supported notifications for this connection (optional)
738
+ pub notifications : Vec < String > ,
737
739
}
738
740
739
741
impl From < nip47:: GetInfoResponse > for GetInfoResponse {
@@ -746,6 +748,7 @@ impl From<nip47::GetInfoResponse> for GetInfoResponse {
746
748
block_height : value. block_height ,
747
749
block_hash : value. block_hash ,
748
750
methods : value. methods ,
751
+ notifications : value. notifications ,
749
752
}
750
753
}
751
754
}
@@ -760,6 +763,7 @@ impl From<GetInfoResponse> for nip47::GetInfoResponse {
760
763
block_height : value. block_height ,
761
764
block_hash : value. block_hash ,
762
765
methods : value. methods ,
766
+ notifications : value. notifications ,
763
767
}
764
768
}
765
769
}
Original file line number Diff line number Diff line change @@ -557,6 +557,9 @@ pub struct JsGetInfoResponse {
557
557
/// Available methods for this connection
558
558
#[ wasm_bindgen( getter_with_clone) ]
559
559
pub methods : Vec < String > ,
560
+ /// List of supported notifications for this connection (optional)
561
+ #[ wasm_bindgen( getter_with_clone) ]
562
+ pub notifications : Vec < String > ,
560
563
}
561
564
562
565
impl From < GetInfoResponse > for JsGetInfoResponse {
@@ -569,6 +572,7 @@ impl From<GetInfoResponse> for JsGetInfoResponse {
569
572
block_height : value. block_height ,
570
573
block_hash : value. block_hash ,
571
574
methods : value. methods ,
575
+ notifications : value. notifications ,
572
576
}
573
577
}
574
578
}
@@ -583,6 +587,7 @@ impl From<JsGetInfoResponse> for GetInfoResponse {
583
587
block_height : value. block_height ,
584
588
block_hash : value. block_hash ,
585
589
methods : value. methods ,
590
+ notifications : value. notifications ,
586
591
}
587
592
}
588
593
}
Original file line number Diff line number Diff line change @@ -607,6 +607,10 @@ pub struct GetInfoResponse {
607
607
pub block_hash : String ,
608
608
/// Available methods for this connection
609
609
pub methods : Vec < String > ,
610
+ /// List of supported notifications for this connection (optional)
611
+ #[ serde( default ) ]
612
+ #[ serde( skip_serializing_if = "Vec::is_empty" ) ]
613
+ pub notifications : Vec < String > ,
610
614
}
611
615
612
616
/// NIP47 Response Result
You can’t perform that action at this time.
0 commit comments