Add disburse crate #641
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
parasitepool/para!641
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "payout"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
//! Transaction construction for disbursing BTC to a payout list.
//!
//! The external interface is
TransactionBuilder::new, which takes the raw//! payout list, the network, the funding outpoint, the change address, and
//! the fee rate. Construction is infallible: payouts are parsed and
//! classified into entries, which can be inspected with
//!
TransactionBuilder::entriesto report dust and invalid payouts before//! building.
//!
//! To build the transaction, call
TransactionBuilder::build_standardor//!
TransactionBuilder::build_payable.build_standardpays only//! above-dust payouts, keeps the transaction within standard weight, and
//! trims the smallest payouts if necessary.
build_payablepays every valid//! payout, permitting dust and overweight transactions.
//!
//! Internally,
TransactionBuilderbuilds the transaction in multiple//! steps, each responsible for a single concern, such as adding change and
//! deducting the fee, and asserts invariants on the resulting transaction
//! before returning it.
LGTM
I will want to tinker the interface a bit as it has some rough edges, but it is very usable already!