Expand description
Peg-in monitor: a task monitoring deposit addresses for peg-ins.
StructsΒ§
- Next
Actions π - A helper struct meant to combined data from all addresses/records into a single struct with all actionable data.
EnumsΒ§
- Check
Outcome π - Outcome of checking a single deposit Bitcoin transaction output
- Check
PegIns πError - A failure to check one peg-in address and claim its confirmed deposits.
FunctionsΒ§
- blocks_
until_ πclaimable tx_block_countis the depositβs block height plus one.- check_
and_ πclaim_ idx_ pegins - check_
for_ πdeposits - check_
idx_ πpegins - Query via btc rpc for a history of an address derived with
tweak_idxand claim any peg-ins that are ready. - claim_
peg_ πin - deposit_
confirmations π - Confirmations shown for a deposit, counted so that they reach
required_confirmationsexactly whenblocks_until_claimablereaches zero. - deposit_
progress π - Progress of each output paying the address of
tweak_idxthat has no local claim record, read from the same sources ascheck_idx_pegins. - filter_
onchain_ πdeposit_ outputs - required_
confirmations π - Confirmations a deposit needs before it can be claimed: the block that mined it, plus the blocks guardians hold their vote back by.
- run_
peg_ πin_ monitor - A deposit monitoring task
- unique_
deposit_ πoutputs - Each output in
historythat paysscript, once, even when the backend lists its transaction more than once.