]> Untitled Git - bdk/commit
chore(chain): Standardise KeychainTxOutIndex return types
authorLLFourn <lloyd.fourn@gmail.com>
Fri, 7 Jun 2024 02:29:58 +0000 (12:29 +1000)
committer志宇 <hello@evanlinjin.me>
Thu, 13 Jun 2024 14:52:44 +0000 (22:52 +0800)
commit101a09a97fa5e8d675c13396b9a800665b1b6c22
tree646aea21aaea9bad2a299918cbe150ed455e76aa
parentbce070b1d662db7ac120e1d236fdda51842ad738
chore(chain): Standardise KeychainTxOutIndex return types

The previous commit b9c5b9d08b040faf6c6b2d9b3745918031555b72 added
IndexSpk. This goes further and adds `Indexed` and `KeychainIndexed`
type alises (IndexSpk is Indexed<ScriptBuf>) and attempts to standardize
the structure of return types more generally.
12 files changed:
crates/chain/src/keychain.rs
crates/chain/src/keychain/txout_index.rs
crates/chain/src/lib.rs
crates/chain/src/spk_client.rs
crates/chain/src/spk_iter.rs
crates/chain/tests/test_keychain_txout_index.rs
crates/esplora/src/async_ext.rs
crates/esplora/src/blocking_ext.rs
crates/wallet/src/wallet/mod.rs
example-crates/example_cli/src/lib.rs
example-crates/example_electrum/src/main.rs
example-crates/example_esplora/src/main.rs