Skip to main content

Module pegin_monitor

Module pegin_monitor 

Source
Expand description

Peg-in monitor: a task monitoring deposit addresses for peg-ins.

StructsΒ§

NextActions πŸ”’
A helper struct meant to combined data from all addresses/records into a single struct with all actionable data.

EnumsΒ§

CheckOutcome πŸ”’
Outcome of checking a single deposit Bitcoin transaction output
CheckPegInsError πŸ”’
A failure to check one peg-in address and claim its confirmed deposits.

FunctionsΒ§

blocks_until_claimable πŸ”’
tx_block_count is 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_idx and claim any peg-ins that are ready.
claim_peg_in πŸ”’
deposit_confirmations πŸ”’
Confirmations shown for a deposit, counted so that they reach required_confirmations exactly when blocks_until_claimable reaches zero.
deposit_progress πŸ”’
Progress of each output paying the address of tweak_idx that has no local claim record, read from the same sources as check_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 history that pays script, once, even when the backend lists its transaction more than once.