Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions bdk-ffi/src/bdk.udl
Original file line number Diff line number Diff line change
Expand Up @@ -304,14 +304,6 @@ typedef record Condition;
// bdk_wallet crate - bitcoin re-exports
// ------------------------------------------------------------------------

[Remote]
enum WordCount {
"Words12",
"Words15",
"Words18",
"Words21",
"Words24",
};

typedef interface Script;

Expand Down
1 change: 0 additions & 1 deletion bdk-ffi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,5 @@ use crate::types::LockTime;
use crate::types::PkOrF;

use bdk_wallet::bitcoin::Network;
use bdk_wallet::keys::bip39::WordCount;

uniffi::include_scaffolding!("bdk");
11 changes: 11 additions & 0 deletions bdk-ffi/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ pub enum KeychainKind {
Internal = 1,
}

type WordCount = bdk_wallet::keys::bip39::WordCount;

#[uniffi::remote(Enum)]
pub enum WordCount {
Words12,
Words15,
Words18,
Words21,
Words24,
}

/// Represents the observed position of some chain data.
#[derive(Debug, uniffi::Enum, Clone)]
pub enum ChainPosition {
Expand Down
Loading