Skip to content

Commit

Permalink
bindings: remove nip26 and nip94 modules
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
  • Loading branch information
yukibtc committed Jan 8, 2025
1 parent 2e55337 commit c387d38
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 398 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
* bindings: cleanup `NostrDatabase` methods ([Yuki Kishimoto])
* bindings: cleanup `EventBuilder` methods ([Yuki Kishimoto])
* bindings: remove `nip13`, `nip15` and `nip51` modules ([Yuki Kishimoto])
* bindings: remove `nip26` and `nip94` modules ([Yuki Kishimoto])

### Deprecated

Expand Down
11 changes: 0 additions & 11 deletions bindings/nostr-sdk-ffi/src/protocol/event/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ use crate::protocol::nips::nip46::NostrConnectMessage;
use crate::protocol::nips::nip57::ZapRequestData;
use crate::protocol::nips::nip65::RelayMetadata;
use crate::protocol::nips::nip90::JobFeedbackData;
use crate::protocol::nips::nip94::FileMetadata;
use crate::protocol::signer::NostrSigner;
use crate::protocol::types::{Contact, Metadata};
use crate::util::parse_optional_relay_url;
Expand Down Expand Up @@ -363,16 +362,6 @@ impl EventBuilder {
}
}

/// File metadata
///
/// <https://github.com/nostr-protocol/nips/blob/master/94.md>
#[uniffi::constructor]
pub fn file_metadata(description: &str, metadata: &FileMetadata) -> Self {
Self {
inner: nostr::EventBuilder::file_metadata(description, metadata.deref().clone()),
}
}

/// Seal
///
/// <https://github.com/nostr-protocol/nips/blob/master/59.md>
Expand Down
2 changes: 0 additions & 2 deletions bindings/nostr-sdk-ffi/src/protocol/nips/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ pub mod nip11;
pub mod nip17;
pub mod nip19;
pub mod nip21;
pub mod nip26;
pub mod nip34;
pub mod nip39;
pub mod nip44;
Expand All @@ -25,5 +24,4 @@ pub mod nip59;
pub mod nip65;
pub mod nip73;
pub mod nip90;
pub mod nip94;
pub mod nip98;
85 changes: 0 additions & 85 deletions bindings/nostr-sdk-ffi/src/protocol/nips/nip26.rs

This file was deleted.

80 changes: 0 additions & 80 deletions bindings/nostr-sdk-ffi/src/protocol/nips/nip94.rs

This file was deleted.

11 changes: 0 additions & 11 deletions bindings/nostr-sdk-js/src/protocol/event/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ use crate::protocol::nips::nip34::{JsGitIssue, JsGitRepositoryAnnouncement};
use crate::protocol::nips::nip57::JsZapRequestData;
use crate::protocol::nips::nip65::JsRelayListItem;
use crate::protocol::nips::nip90::JsJobFeedbackData;
use crate::protocol::nips::nip94::JsFileMetadata;
use crate::protocol::types::{JsContact, JsMetadata, JsTimestamp};
use crate::signer::JsNostrSigner;
use crate::util::parse_optional_relay_url;
Expand Down Expand Up @@ -342,16 +341,6 @@ impl JsEventBuilder {
}
}

/// File metadata
///
/// <https://github.com/nostr-protocol/nips/blob/master/94.md>
#[wasm_bindgen(js_name = fileMetadata)]
pub fn file_metadata(description: &str, metadata: &JsFileMetadata) -> Self {
Self {
inner: EventBuilder::file_metadata(description, metadata.deref().clone()),
}
}

/// Seal
///
/// <https://github.com/nostr-protocol/nips/blob/master/59.md>
Expand Down
2 changes: 0 additions & 2 deletions bindings/nostr-sdk-js/src/protocol/nips/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ pub mod nip05;
pub mod nip07;
pub mod nip11;
pub mod nip19;
pub mod nip26;
pub mod nip34;
pub mod nip44;
pub mod nip46;
Expand All @@ -20,5 +19,4 @@ pub mod nip57;
pub mod nip59;
pub mod nip65;
pub mod nip90;
pub mod nip94;
pub mod nip98;
88 changes: 0 additions & 88 deletions bindings/nostr-sdk-js/src/protocol/nips/nip26.rs

This file was deleted.

Loading

0 comments on commit c387d38

Please sign in to comment.