expose: get_address peek
This commit is contained in:
parent
aa842c3844
commit
7fefb8a7b9
@ -53,9 +53,11 @@ dictionary AddressInfo {
|
|||||||
string address;
|
string address;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum AddressIndex {
|
[Enum]
|
||||||
"New",
|
interface AddressIndex {
|
||||||
"LastUnused",
|
New();
|
||||||
|
LastUnused();
|
||||||
|
Peek(u32 index);
|
||||||
};
|
};
|
||||||
|
|
||||||
enum Network {
|
enum Network {
|
||||||
|
@ -69,6 +69,9 @@ pub enum AddressIndex {
|
|||||||
/// caller is untrusted; for example when deriving donation addresses on-demand for a public
|
/// caller is untrusted; for example when deriving donation addresses on-demand for a public
|
||||||
/// web page.
|
/// web page.
|
||||||
LastUnused,
|
LastUnused,
|
||||||
|
Peek {
|
||||||
|
index: u32,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<AddressIndex> for BdkAddressIndex {
|
impl From<AddressIndex> for BdkAddressIndex {
|
||||||
@ -76,6 +79,7 @@ impl From<AddressIndex> for BdkAddressIndex {
|
|||||||
match x {
|
match x {
|
||||||
AddressIndex::New => BdkAddressIndex::New,
|
AddressIndex::New => BdkAddressIndex::New,
|
||||||
AddressIndex::LastUnused => BdkAddressIndex::LastUnused,
|
AddressIndex::LastUnused => BdkAddressIndex::LastUnused,
|
||||||
|
AddressIndex::Peek { index } => BdkAddressIndex::Peek(index),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user