-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unify changeset APIs between all structures #1022
Milestone
Comments
16 tasks
5 tasks
19 tasks
Since we are already on this, can I request for some more renamings?
I think this will provide more clarity. Thanks @danielabrozzoni |
danielabrozzoni
added a commit
to danielabrozzoni/bdk
that referenced
this issue
Aug 7, 2023
This commit renames: indexed_tx_graph::IndexedAdditions -> indexed_tx_graph::ChangeSet tx_graph::Additions -> tx_graph::ChangeSet keychain::DerivationAdditions -> keychain::ChangeSet CanonicalTx::node -> CanonicalTx::tx_node, CanonicalTx::observed_as -> CanonicalTx::chain_position This commit also changes the visibility of the determine_changeset methods Solves bitcoindevkit#1022
danielabrozzoni
added a commit
to danielabrozzoni/bdk
that referenced
this issue
Aug 7, 2023
This commit renames: indexed_tx_graph::IndexedAdditions -> indexed_tx_graph::ChangeSet tx_graph::Additions -> tx_graph::ChangeSet keychain::DerivationAdditions -> keychain::ChangeSet CanonicalTx::node -> CanonicalTx::tx_node, CanonicalTx::observed_as -> CanonicalTx::chain_position This commit also changes the visibility of the determine_changeset methods to be pub(crate) Solves bitcoindevkit#1022
3 tasks
danielabrozzoni
added a commit
to danielabrozzoni/bdk
that referenced
this issue
Aug 7, 2023
This commit renames: indexed_tx_graph::IndexedAdditions -> indexed_tx_graph::ChangeSet tx_graph::Additions -> tx_graph::ChangeSet keychain::DerivationAdditions -> keychain::ChangeSet CanonicalTx::node -> CanonicalTx::tx_node, CanonicalTx::observed_as -> CanonicalTx::chain_position This commit also changes the visibility of TxGraph::determine_changeset to be pub(crate) Solves bitcoindevkit#1022
danielabrozzoni
added a commit
to danielabrozzoni/bdk
that referenced
this issue
Aug 7, 2023
This commit renames: - indexed_tx_graph::IndexedAdditions -> indexed_tx_graph::ChangeSet - tx_graph::Additions -> tx_graph::ChangeSet - keychain::DerivationAdditions -> keychain::ChangeSet - CanonicalTx::node -> CanonicalTx::tx_node - CanonicalTx::observed_as -> CanonicalTx::chain_position This commit also changes the visibility of TxGraph::determine_changeset to be pub(crate) This commit removes: - `TxGraph::insert_txout_preview` - `TxGraph::insert_tx_preview` - `insert_anchor_preview` - `insert_seen_at_preview` Solves bitcoindevkit#1022
danielabrozzoni
added a commit
to danielabrozzoni/bdk
that referenced
this issue
Aug 16, 2023
This commit renames: - indexed_tx_graph::IndexedAdditions -> indexed_tx_graph::ChangeSet - indexed_tx_graph::IndexedAdditions::graph_additions -> indexed_tx_graph::ChangeSet::graph - indexed_tx_graph::IndexedAdditions::index_additions -> indexed_tx_graph::ChangeSet::indexer - tx_graph::Additions -> tx_graph::ChangeSet - keychain::DerivationAdditions -> keychain::ChangeSet - CanonicalTx::node -> CanonicalTx::tx_node - CanonicalTx::observed_as -> CanonicalTx::chain_position - LocalChangeSet -> WalletChangeSet - LocalChangeSet::chain_changeset -> WalletChangeSet::chain - LocalChangeSet::indexed_additions -> WalletChangeSet::indexed_tx_graph - LocalUpdate -> WalletUpdate This commit also changes the visibility of TxGraph::determine_changeset to be pub(crate) This commit removes: - `TxGraph::insert_txout_preview` - `TxGraph::insert_tx_preview` - `insert_anchor_preview` - `insert_seen_at_preview` Solves bitcoindevkit#1022
danielabrozzoni
added a commit
to danielabrozzoni/bdk
that referenced
this issue
Aug 16, 2023
This commit renames: - indexed_tx_graph::IndexedAdditions -> indexed_tx_graph::ChangeSet - indexed_tx_graph::IndexedAdditions::graph_additions -> indexed_tx_graph::ChangeSet::graph - indexed_tx_graph::IndexedAdditions::index_additions -> indexed_tx_graph::ChangeSet::indexer - tx_graph::Additions -> tx_graph::ChangeSet - keychain::DerivationAdditions -> keychain::ChangeSet - CanonicalTx::node -> CanonicalTx::tx_node - CanonicalTx::observed_as -> CanonicalTx::chain_position - LocalChangeSet -> WalletChangeSet - LocalChangeSet::chain_changeset -> WalletChangeSet::chain - LocalChangeSet::indexed_additions -> WalletChangeSet::indexed_tx_graph - LocalUpdate -> WalletUpdate This commit also changes the visibility of TxGraph::determine_changeset to be pub(crate) This commit removes: - `TxGraph::insert_txout_preview` - `TxGraph::insert_tx_preview` - `insert_anchor_preview` - `insert_seen_at_preview` Solves bitcoindevkit#1022
danielabrozzoni
added a commit
to danielabrozzoni/bdk
that referenced
this issue
Aug 16, 2023
This commit renames: - indexed_tx_graph::IndexedAdditions -> indexed_tx_graph::ChangeSet - indexed_tx_graph::IndexedAdditions::graph_additions -> indexed_tx_graph::ChangeSet::graph - indexed_tx_graph::IndexedAdditions::index_additions -> indexed_tx_graph::ChangeSet::indexer - tx_graph::Additions -> tx_graph::ChangeSet - keychain::DerivationAdditions -> keychain::ChangeSet - CanonicalTx::node -> CanonicalTx::tx_node - CanonicalTx::observed_as -> CanonicalTx::chain_position - LocalChangeSet -> WalletChangeSet - LocalChangeSet::chain_changeset -> WalletChangeSet::chain - LocalChangeSet::indexed_additions -> WalletChangeSet::indexed_tx_graph - LocalUpdate -> WalletUpdate This commit also changes the visibility of TxGraph::determine_changeset to be pub(crate) This commit removes: - `TxGraph::insert_txout_preview` - `TxGraph::insert_tx_preview` - `insert_anchor_preview` - `insert_seen_at_preview` Solves bitcoindevkit#1022
danielabrozzoni
added a commit
to danielabrozzoni/bdk
that referenced
this issue
Aug 16, 2023
This commit renames: - indexed_tx_graph::IndexedAdditions -> indexed_tx_graph::ChangeSet - indexed_tx_graph::IndexedAdditions::graph_additions -> indexed_tx_graph::ChangeSet::graph - indexed_tx_graph::IndexedAdditions::index_additions -> indexed_tx_graph::ChangeSet::indexer - tx_graph::Additions -> tx_graph::ChangeSet - keychain::DerivationAdditions -> keychain::ChangeSet - CanonicalTx::node -> CanonicalTx::tx_node - CanonicalTx::observed_as -> CanonicalTx::chain_position - LocalChangeSet -> WalletChangeSet - LocalChangeSet::chain_changeset -> WalletChangeSet::chain - LocalChangeSet::indexed_additions -> WalletChangeSet::indexed_tx_graph - LocalUpdate -> WalletUpdate This commit also changes the visibility of TxGraph::determine_changeset to be pub(crate) This commit removes: - `TxGraph::insert_txout_preview` - `TxGraph::insert_tx_preview` - `insert_anchor_preview` - `insert_seen_at_preview` Solves bitcoindevkit#1022
danielabrozzoni
added a commit
to danielabrozzoni/bdk
that referenced
this issue
Aug 18, 2023
This commit renames: - indexed_tx_graph::IndexedAdditions -> indexed_tx_graph::ChangeSet - indexed_tx_graph::IndexedAdditions::graph_additions -> indexed_tx_graph::ChangeSet::graph - indexed_tx_graph::IndexedAdditions::index_additions -> indexed_tx_graph::ChangeSet::indexer - tx_graph::Additions -> tx_graph::ChangeSet - keychain::DerivationAdditions -> keychain::ChangeSet - CanonicalTx::node -> CanonicalTx::tx_node - CanonicalTx::observed_as -> CanonicalTx::chain_position - LocalChangeSet -> WalletChangeSet - LocalChangeSet::chain_changeset -> WalletChangeSet::chain - LocalChangeSet::indexed_additions -> WalletChangeSet::indexed_tx_graph - LocalUpdate -> WalletUpdate This commit also changes the visibility of TxGraph::determine_changeset to be pub(crate), and the method accepts a TxGraph instead of &TxGraph This commit removes: - `TxGraph::insert_txout_preview` - `TxGraph::insert_tx_preview` - `insert_anchor_preview` - `insert_seen_at_preview` Solves bitcoindevkit#1022
evanlinjin
added a commit
that referenced
this issue
Aug 18, 2023
62f2531 ci: Update tokio version (Daniela Brozzoni) 80f5ecf feat(chain): Add `initial_changeset` to graphs (Daniela Brozzoni) ea50b6a refactor!(chain): Unify ChangeSet nomenclature (Daniela Brozzoni) Pull request description: Solves #1022 ### Changelog notice Rename `indexed_tx_graph::IndexedAdditions` to `indexed_tx_graph::ChangeSet` Rename `indexed_tx_graph::IndexedAdditions::graph_additions` to `indexed_tx_graph::ChangeSet::graph` Rename `indexed_tx_graph::IndexedAdditions::index_additions` to `indexed_tx_graph::ChangeSet::indexer` Rename `tx_graph::Additions` to `tx_graph::ChangeSet` Rename `keychain::DerivationAdditions` to `keychain::ChangeSet` Rename `CanonicalTx::node` to `CanonicalTx::tx_node` Rename `CanonicalTx::observed_as` to `CanonicalTx::chain_position` Rename `LocalChangeSet` to `WalletChangeSet` Rename `LocalChangeSet::chain_changeset` to `WalletChangeSet::chain` Rename `LocalChangeSet::indexed_additions` to `WalletChangeSet::indexed_tx_graph` Rename `LocalUpdate` to `WalletUpdate` Make `TxGraph::determine_changeset` `pub(crate)` Add `TxGraph::initial_changeset` Add `IndexedTxGraph::initial_changeset` Remove `TxGraph::insert_txout_preview` Remove `TxGraph::insert_tx_preview` Remove `insert_anchor_preview` Remove `insert_seen_at_preview` ### Notes to reviewers I'm not sure whether we want to keep `TxGraph::determine_changeset` public or not ### Checklists #### All Submissions: * [x] I've signed all my commits * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md) * [x] I ran `cargo fmt` and `cargo clippy` before committing ACKs for top commit: evanlinjin: ACK 62f2531 Tree-SHA512: 401bdf49c5f2082971cfcd54725ce98abd08263de7571205a324a2adbb5359be4f48454def415bedadde0a9c81db437b91c13cd6e892ba54b215059f75006dd5
#1065 fixed this |
LagginTimes
pushed a commit
to LagginTimes/bdk
that referenced
this issue
Aug 24, 2023
This commit renames: - indexed_tx_graph::IndexedAdditions -> indexed_tx_graph::ChangeSet - indexed_tx_graph::IndexedAdditions::graph_additions -> indexed_tx_graph::ChangeSet::graph - indexed_tx_graph::IndexedAdditions::index_additions -> indexed_tx_graph::ChangeSet::indexer - tx_graph::Additions -> tx_graph::ChangeSet - keychain::DerivationAdditions -> keychain::ChangeSet - CanonicalTx::node -> CanonicalTx::tx_node - CanonicalTx::observed_as -> CanonicalTx::chain_position - LocalChangeSet -> WalletChangeSet - LocalChangeSet::chain_changeset -> WalletChangeSet::chain - LocalChangeSet::indexed_additions -> WalletChangeSet::indexed_tx_graph - LocalUpdate -> WalletUpdate This commit also changes the visibility of TxGraph::determine_changeset to be pub(crate), and the method accepts a TxGraph instead of &TxGraph This commit removes: - `TxGraph::insert_txout_preview` - `TxGraph::insert_tx_preview` - `insert_anchor_preview` - `insert_seen_at_preview` Solves bitcoindevkit#1022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TxGraph
it's calledAdditions
while IndexedTxGraph is calledIndexedAdditions
. Rather they should have the same name and users should just use different module prefixes e.g.tx_graph::Additions
orindexed_tx_graph::Additions
.LocalChain
in this policy despite it not being monotone (yet).The text was updated successfully, but these errors were encountered: