diff --git a/bindings/ldk_node.udl b/bindings/ldk_node.udl index c6c7f4f38..dd18228cd 100644 --- a/bindings/ldk_node.udl +++ b/bindings/ldk_node.udl @@ -33,10 +33,10 @@ interface Builder { [Throws=BuildError] void set_listening_addresses(sequence listening_addresses); [Throws=BuildError] - LDKNode build(); + Node build(); }; -interface LDKNode { +interface Node { [Throws=NodeError] void start(); [Throws=NodeError] diff --git a/src/lib.rs b/src/lib.rs index 00e1e10fb..7b83cd561 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -106,7 +106,7 @@ pub use types::ChannelConfig; pub use io::utils::generate_entropy_mnemonic; #[cfg(feature = "uniffi")] -use {bip39::Mnemonic, bitcoin::OutPoint, lightning::ln::PaymentSecret, uniffi_types::*}; +use {bip39::Mnemonic, bitcoin::OutPoint, lightning::ln::PaymentSecret}; #[cfg(feature = "uniffi")] pub use builder::ArcedNodeBuilder as Builder; diff --git a/src/uniffi_types.rs b/src/uniffi_types.rs index 98c2e44f8..057fa164c 100644 --- a/src/uniffi_types.rs +++ b/src/uniffi_types.rs @@ -2,7 +2,7 @@ use crate::UniffiCustomTypeConverter; use crate::error::Error; use crate::hex_utils; -use crate::{Node, SocketAddress, UserChannelId}; +use crate::{SocketAddress, UserChannelId}; use bitcoin::hashes::sha256::Hash as Sha256; use bitcoin::hashes::Hash; @@ -16,10 +16,6 @@ use bip39::Mnemonic; use std::convert::TryInto; use std::str::FromStr; -/// This type alias is required as Uniffi doesn't support generics, i.e., we can only expose the -/// concretized types via this aliasing hack. -pub type LDKNode = Node; - impl UniffiCustomTypeConverter for PublicKey { type Builtin = String;