133 |
(module level)
|
NumberReplacer
|
ESTIMATED_DEFAULT_MARGIN_BLOCKS = 36
|
ESTIMATED_DEFAULT_MARGIN_BLOCKS = 35
|
|
133 |
(module level)
|
NumberReplacer
|
ESTIMATED_DEFAULT_MARGIN_BLOCKS = 36
|
ESTIMATED_DEFAULT_MARGIN_BLOCKS = 37
|
|
140 |
(module level)
|
NumberReplacer
|
ESTIMATED_BTC_CLAIM_REORG_DEPTH_BLOCKS = 6
|
ESTIMATED_BTC_CLAIM_REORG_DEPTH_BLOCKS = 7
|
|
140 |
(module level)
|
NumberReplacer
|
ESTIMATED_BTC_CLAIM_REORG_DEPTH_BLOCKS = 6
|
ESTIMATED_BTC_CLAIM_REORG_DEPTH_BLOCKS = 5
|
|
145 |
(module level)
|
NumberReplacer
|
ESTIMATED_RXD_CLAIM_BURIAL_BLOCKS = 6
|
ESTIMATED_RXD_CLAIM_BURIAL_BLOCKS = 5
|
|
145 |
(module level)
|
NumberReplacer
|
ESTIMATED_RXD_CLAIM_BURIAL_BLOCKS = 6
|
ESTIMATED_RXD_CLAIM_BURIAL_BLOCKS = 7
|
|
164 |
(module level)
|
ReplaceTrueWithFalse
|
@dataclass(frozen=True)
|
@dataclass(frozen=False)
|
|
193 |
MarginPolicy
|
NumberReplacer
|
rxd_block_interval_s: float = 300.0
|
rxd_block_interval_s: float = 301.0
|
|
193 |
MarginPolicy
|
NumberReplacer
|
rxd_block_interval_s: float = 300.0
|
rxd_block_interval_s: float = 299.0
|
|
227 |
MarginPolicy
|
NumberReplacer
|
burial_safety_factor: float = 1.0
|
burial_safety_factor: float = 2.0
|
|
230 |
MarginPolicy
|
ReplaceFalseWithTrue
|
accept_flat_burial: bool = False
|
accept_flat_burial: bool = True
|
|
249 |
__post_init__
|
NumberReplacer
|
if not isinstance(self.block_interval_s, (int, float)) or self.block_interval_s <= 0:
|
if not isinstance(self.block_interval_s, (int, float)) or self.block_interval_s <= -1:
|
|
249 |
__post_init__
|
NumberReplacer
|
if not isinstance(self.block_interval_s, (int, float)) or self.block_interval_s <= 0:
|
if not isinstance(self.block_interval_s, (int, float)) or self.block_interval_s <= 1:
|
|
249 |
__post_init__
|
ReplaceComparisonOperator_LtE_Eq
|
if not isinstance(self.block_interval_s, (int, float)) or self.block_interval_s <= 0:
|
if not isinstance(self.block_interval_s, (int, float)) or self.block_interval_s == 0:
|
|
249 |
__post_init__
|
ReplaceComparisonOperator_LtE_Lt
|
if not isinstance(self.block_interval_s, (int, float)) or self.block_interval_s <= 0:
|
if not isinstance(self.block_interval_s, (int, float)) or self.block_interval_s < 0:
|
|
249 |
__post_init__
|
ReplaceOrWithAnd
|
if not isinstance(self.block_interval_s, (int, float)) or self.block_interval_s <= 0:
|
if not isinstance(self.block_interval_s, (int, float)) and self.block_interval_s <= 0:
|
|
251 |
__post_init__
|
NumberReplacer
|
if not isinstance(self.rxd_block_interval_s, (int, float)) or self.rxd_block_interval_s <= 0:
|
if not isinstance(self.rxd_block_interval_s, (int, float)) or self.rxd_block_interval_s <= 1:
|
|
251 |
__post_init__
|
NumberReplacer
|
if not isinstance(self.rxd_block_interval_s, (int, float)) or self.rxd_block_interval_s <= 0:
|
if not isinstance(self.rxd_block_interval_s, (int, float)) or self.rxd_block_interval_s <= -1:
|
|
251 |
__post_init__
|
ReplaceComparisonOperator_LtE_Eq
|
if not isinstance(self.rxd_block_interval_s, (int, float)) or self.rxd_block_interval_s <= 0:
|
if not isinstance(self.rxd_block_interval_s, (int, float)) or self.rxd_block_interval_s == 0:
|
|
251 |
__post_init__
|
ReplaceComparisonOperator_LtE_Lt
|
if not isinstance(self.rxd_block_interval_s, (int, float)) or self.rxd_block_interval_s <= 0:
|
if not isinstance(self.rxd_block_interval_s, (int, float)) or self.rxd_block_interval_s < 0:
|
|
251 |
__post_init__
|
ReplaceOrWithAnd
|
if not isinstance(self.rxd_block_interval_s, (int, float)) or self.rxd_block_interval_s <= 0:
|
if not isinstance(self.rxd_block_interval_s, (int, float)) and self.rxd_block_interval_s <= 0:
|
|
281 |
__post_init__
|
ZeroIterationForLoop
|
`` |
for label, val in []:
|
|
285 |
__post_init__
|
NumberReplacer
|
if val is not None and (not isinstance(val, int) or isinstance(val, bool) or val <= 0):
|
if val is not None and (not isinstance(val, int) or isinstance(val, bool) or val <= 1):
|
|
285 |
__post_init__
|
NumberReplacer
|
if val is not None and (not isinstance(val, int) or isinstance(val, bool) or val <= 0):
|
if val is not None and (not isinstance(val, int) or isinstance(val, bool) or val <= -1):
|
|
285 |
__post_init__
|
ReplaceComparisonOperator_LtE_Eq
|
if val is not None and (not isinstance(val, int) or isinstance(val, bool) or val <= 0):
|
if val is not None and (not isinstance(val, int) or isinstance(val, bool) or val == 0):
|
|
285 |
__post_init__
|
ReplaceComparisonOperator_LtE_Lt
|
if val is not None and (not isinstance(val, int) or isinstance(val, bool) or val <= 0):
|
if val is not None and (not isinstance(val, int) or isinstance(val, bool) or val < 0):
|
|
285 |
__post_init__
|
ReplaceOrWithAnd
|
if val is not None and (not isinstance(val, int) or isinstance(val, bool) or val <= 0):
|
if val is not None and (not isinstance(val, int) or isinstance(val, bool) and val <= 0):
|
|
285 |
__post_init__
|
ReplaceOrWithAnd
|
if val is not None and (not isinstance(val, int) or isinstance(val, bool) or val <= 0):
|
if val is not None and (not isinstance(val, int) and isinstance(val, bool) or val <= 0):
|
|
287 |
__post_init__
|
ReplaceOrWithAnd
|
if not isinstance(self.burial_safety_factor, (int, float)) or isinstance(self.burial_safety_factor, bool):
|
if not isinstance(self.burial_safety_factor, (int, float)) and isinstance(self.burial_safety_factor, bool):
|
|
299 |
__post_init__
|
ReplaceOrWithAnd
|
or isinstance(self.eth_finalization_window_s, bool)
|
and isinstance(self.eth_finalization_window_s, bool)
|
|
300 |
__post_init__
|
NumberReplacer
|
or self.eth_finalization_window_s <= 0
|
or self.eth_finalization_window_s <= 1
|
|
300 |
__post_init__
|
NumberReplacer
|
or self.eth_finalization_window_s <= 0
|
or self.eth_finalization_window_s <= -1
|
|
300 |
__post_init__
|
ReplaceComparisonOperator_LtE_Eq
|
or self.eth_finalization_window_s <= 0
|
or self.eth_finalization_window_s == 0
|
|
300 |
__post_init__
|
ReplaceComparisonOperator_LtE_Lt
|
or self.eth_finalization_window_s <= 0
|
or self.eth_finalization_window_s < 0
|
|
300 |
__post_init__
|
ReplaceOrWithAnd
|
or self.eth_finalization_window_s <= 0
|
and self.eth_finalization_window_s <= 0
|
|
303 |
__post_init__
|
ReplaceComparisonOperator_Lt_NotEq
|
if self.eth_finalization_window_s < _MIN_ETH_FINALIZATION_WINDOW_S:
|
if self.eth_finalization_window_s != _MIN_ETH_FINALIZATION_WINDOW_S:
|
|
313 |
__post_init__
|
ReplaceOrWithAnd
|
or isinstance(self.max_covenant_confirm_wait_s, bool)
|
and isinstance(self.max_covenant_confirm_wait_s, bool)
|
|
314 |
__post_init__
|
NumberReplacer
|
or self.max_covenant_confirm_wait_s < 0
|
or self.max_covenant_confirm_wait_s < -1
|
|
314 |
__post_init__
|
NumberReplacer
|
or self.max_covenant_confirm_wait_s < 0
|
or self.max_covenant_confirm_wait_s < 1
|
|
314 |
__post_init__
|
ReplaceComparisonOperator_Lt_Eq
|
or self.max_covenant_confirm_wait_s < 0
|
or self.max_covenant_confirm_wait_s == 0
|
|
314 |
__post_init__
|
ReplaceComparisonOperator_Lt_LtE
|
or self.max_covenant_confirm_wait_s < 0
|
or self.max_covenant_confirm_wait_s <= 0
|
|
314 |
__post_init__
|
ReplaceOrWithAnd
|
or self.max_covenant_confirm_wait_s < 0
|
and self.max_covenant_confirm_wait_s < 0
|
|
320 |
estimated
|
NumberReplacer
|
cls, *, block_interval_s: float = 600.0, require_measured: bool = False, accept_flat_burial: bool = False
|
cls, *, block_interval_s: float = 601.0, require_measured: bool = False, accept_flat_burial: bool = False
|
|
320 |
estimated
|
NumberReplacer
|
cls, *, block_interval_s: float = 600.0, require_measured: bool = False, accept_flat_burial: bool = False
|
cls, *, block_interval_s: float = 599.0, require_measured: bool = False, accept_flat_burial: bool = False
|
|
320 |
estimated
|
ReplaceBinaryOperator_Mul_Div
|
cls, *, block_interval_s: float = 600.0, require_measured: bool = False, accept_flat_burial: bool = False
|
cls, /, block_interval_s: float = 600.0, require_measured: bool = False, accept_flat_burial: bool = False
|
|
338 |
measured
|
ReplaceBinaryOperator_Mul_Div
|
*,
|
/,
|
|
341 |
measured
|
ReplaceBinaryOperator_BitOr_Add
|
btc_claim_reorg_depth: Timelock | None = None,
|
btc_claim_reorg_depth: Timelock + None = None,
|
annot
|
341 |
measured
|
ReplaceBinaryOperator_BitOr_BitAnd
|
btc_claim_reorg_depth: Timelock | None = None,
|
btc_claim_reorg_depth: Timelock & None = None,
|
annot
|
341 |
measured
|
ReplaceBinaryOperator_BitOr_BitXor
|
btc_claim_reorg_depth: Timelock | None = None,
|
btc_claim_reorg_depth: Timelock ^ None = None,
|
annot
|
341 |
measured
|
ReplaceBinaryOperator_BitOr_Div
|
btc_claim_reorg_depth: Timelock | None = None,
|
btc_claim_reorg_depth: Timelock / None = None,
|
annot
|
341 |
measured
|
ReplaceBinaryOperator_BitOr_FloorDiv
|
btc_claim_reorg_depth: Timelock | None = None,
|
btc_claim_reorg_depth: Timelock // None = None,
|
annot
|
341 |
measured
|
ReplaceBinaryOperator_BitOr_LShift
|
btc_claim_reorg_depth: Timelock | None = None,
|
btc_claim_reorg_depth: Timelock << None = None,
|
annot
|
341 |
measured
|
ReplaceBinaryOperator_BitOr_Mod
|
btc_claim_reorg_depth: Timelock | None = None,
|
btc_claim_reorg_depth: Timelock % None = None,
|
annot
|
341 |
measured
|
ReplaceBinaryOperator_BitOr_Mul
|
btc_claim_reorg_depth: Timelock | None = None,
|
btc_claim_reorg_depth: Timelock * None = None,
|
annot
|
341 |
measured
|
ReplaceBinaryOperator_BitOr_Pow
|
btc_claim_reorg_depth: Timelock | None = None,
|
btc_claim_reorg_depth: Timelock ** None = None,
|
annot
|
341 |
measured
|
ReplaceBinaryOperator_BitOr_RShift
|
btc_claim_reorg_depth: Timelock | None = None,
|
btc_claim_reorg_depth: Timelock >> None = None,
|
annot
|
341 |
measured
|
ReplaceBinaryOperator_BitOr_Sub
|
btc_claim_reorg_depth: Timelock | None = None,
|
btc_claim_reorg_depth: Timelock - None = None,
|
annot
|
342 |
measured
|
ReplaceBinaryOperator_BitOr_Add
|
rxd_claim_burial: Timelock | None = None,
|
rxd_claim_burial: Timelock + None = None,
|
annot
|
342 |
measured
|
ReplaceBinaryOperator_BitOr_BitAnd
|
rxd_claim_burial: Timelock | None = None,
|
rxd_claim_burial: Timelock & None = None,
|
annot
|
342 |
measured
|
ReplaceBinaryOperator_BitOr_BitXor
|
rxd_claim_burial: Timelock | None = None,
|
rxd_claim_burial: Timelock ^ None = None,
|
annot
|
342 |
measured
|
ReplaceBinaryOperator_BitOr_Div
|
rxd_claim_burial: Timelock | None = None,
|
rxd_claim_burial: Timelock / None = None,
|
annot
|
342 |
measured
|
ReplaceBinaryOperator_BitOr_FloorDiv
|
rxd_claim_burial: Timelock | None = None,
|
rxd_claim_burial: Timelock // None = None,
|
annot
|
342 |
measured
|
ReplaceBinaryOperator_BitOr_LShift
|
rxd_claim_burial: Timelock | None = None,
|
rxd_claim_burial: Timelock << None = None,
|
annot
|
342 |
measured
|
ReplaceBinaryOperator_BitOr_Mod
|
rxd_claim_burial: Timelock | None = None,
|
rxd_claim_burial: Timelock % None = None,
|
annot
|
342 |
measured
|
ReplaceBinaryOperator_BitOr_Mul
|
rxd_claim_burial: Timelock | None = None,
|
rxd_claim_burial: Timelock * None = None,
|
annot
|
342 |
measured
|
ReplaceBinaryOperator_BitOr_Pow
|
rxd_claim_burial: Timelock | None = None,
|
rxd_claim_burial: Timelock ** None = None,
|
annot
|
342 |
measured
|
ReplaceBinaryOperator_BitOr_RShift
|
rxd_claim_burial: Timelock | None = None,
|
rxd_claim_burial: Timelock >> None = None,
|
annot
|
342 |
measured
|
ReplaceBinaryOperator_BitOr_Sub
|
rxd_claim_burial: Timelock | None = None,
|
rxd_claim_burial: Timelock - None = None,
|
annot
|
343 |
measured
|
ReplaceBinaryOperator_BitOr_Add
|
rxd_block_interval_s: float | None = None,
|
rxd_block_interval_s: float + None = None,
|
annot
|
343 |
measured
|
ReplaceBinaryOperator_BitOr_BitAnd
|
rxd_block_interval_s: float | None = None,
|
rxd_block_interval_s: float & None = None,
|
annot
|
343 |
measured
|
ReplaceBinaryOperator_BitOr_BitXor
|
rxd_block_interval_s: float | None = None,
|
rxd_block_interval_s: float ^ None = None,
|
annot
|
343 |
measured
|
ReplaceBinaryOperator_BitOr_Div
|
rxd_block_interval_s: float | None = None,
|
rxd_block_interval_s: float / None = None,
|
annot
|
343 |
measured
|
ReplaceBinaryOperator_BitOr_FloorDiv
|
rxd_block_interval_s: float | None = None,
|
rxd_block_interval_s: float // None = None,
|
annot
|
343 |
measured
|
ReplaceBinaryOperator_BitOr_LShift
|
rxd_block_interval_s: float | None = None,
|
rxd_block_interval_s: float << None = None,
|
annot
|
343 |
measured
|
ReplaceBinaryOperator_BitOr_Mod
|
rxd_block_interval_s: float | None = None,
|
rxd_block_interval_s: float % None = None,
|
annot
|
343 |
measured
|
ReplaceBinaryOperator_BitOr_Mul
|
rxd_block_interval_s: float | None = None,
|
rxd_block_interval_s: float * None = None,
|
annot
|
343 |
measured
|
ReplaceBinaryOperator_BitOr_Pow
|
rxd_block_interval_s: float | None = None,
|
rxd_block_interval_s: float ** None = None,
|
annot
|
343 |
measured
|
ReplaceBinaryOperator_BitOr_RShift
|
rxd_block_interval_s: float | None = None,
|
rxd_block_interval_s: float >> None = None,
|
annot
|
343 |
measured
|
ReplaceBinaryOperator_BitOr_Sub
|
rxd_block_interval_s: float | None = None,
|
rxd_block_interval_s: float - None = None,
|
annot
|
344 |
measured
|
ReplaceBinaryOperator_BitOr_Add
|
rxd_reorg_cost_per_block: int | None = None,
|
rxd_reorg_cost_per_block: int + None = None,
|
annot
|
344 |
measured
|
ReplaceBinaryOperator_BitOr_BitAnd
|
rxd_reorg_cost_per_block: int | None = None,
|
rxd_reorg_cost_per_block: int & None = None,
|
annot
|
344 |
measured
|
ReplaceBinaryOperator_BitOr_BitXor
|
rxd_reorg_cost_per_block: int | None = None,
|
rxd_reorg_cost_per_block: int ^ None = None,
|
annot
|
344 |
measured
|
ReplaceBinaryOperator_BitOr_Div
|
rxd_reorg_cost_per_block: int | None = None,
|
rxd_reorg_cost_per_block: int / None = None,
|
annot
|
344 |
measured
|
ReplaceBinaryOperator_BitOr_FloorDiv
|
rxd_reorg_cost_per_block: int | None = None,
|
rxd_reorg_cost_per_block: int // None = None,
|
annot
|
344 |
measured
|
ReplaceBinaryOperator_BitOr_LShift
|
rxd_reorg_cost_per_block: int | None = None,
|
rxd_reorg_cost_per_block: int << None = None,
|
annot
|
344 |
measured
|
ReplaceBinaryOperator_BitOr_Mod
|
rxd_reorg_cost_per_block: int | None = None,
|
rxd_reorg_cost_per_block: int % None = None,
|
annot
|
344 |
measured
|
ReplaceBinaryOperator_BitOr_Mul
|
rxd_reorg_cost_per_block: int | None = None,
|
rxd_reorg_cost_per_block: int * None = None,
|
annot
|
344 |
measured
|
ReplaceBinaryOperator_BitOr_Pow
|
rxd_reorg_cost_per_block: int | None = None,
|
rxd_reorg_cost_per_block: int ** None = None,
|
annot
|
344 |
measured
|
ReplaceBinaryOperator_BitOr_RShift
|
rxd_reorg_cost_per_block: int | None = None,
|
rxd_reorg_cost_per_block: int >> None = None,
|
annot
|
344 |
measured
|
ReplaceBinaryOperator_BitOr_Sub
|
rxd_reorg_cost_per_block: int | None = None,
|
rxd_reorg_cost_per_block: int - None = None,
|
annot
|
345 |
measured
|
ReplaceBinaryOperator_BitOr_Add
|
value_at_risk_photons: int | None = None,
|
value_at_risk_photons: int + None = None,
|
annot
|
345 |
measured
|
ReplaceBinaryOperator_BitOr_BitAnd
|
value_at_risk_photons: int | None = None,
|
value_at_risk_photons: int & None = None,
|
annot
|
345 |
measured
|
ReplaceBinaryOperator_BitOr_BitXor
|
value_at_risk_photons: int | None = None,
|
value_at_risk_photons: int ^ None = None,
|
annot
|
345 |
measured
|
ReplaceBinaryOperator_BitOr_Div
|
value_at_risk_photons: int | None = None,
|
value_at_risk_photons: int / None = None,
|
annot
|
345 |
measured
|
ReplaceBinaryOperator_BitOr_FloorDiv
|
value_at_risk_photons: int | None = None,
|
value_at_risk_photons: int // None = None,
|
annot
|
345 |
measured
|
ReplaceBinaryOperator_BitOr_LShift
|
value_at_risk_photons: int | None = None,
|
value_at_risk_photons: int << None = None,
|
annot
|
345 |
measured
|
ReplaceBinaryOperator_BitOr_Mod
|
value_at_risk_photons: int | None = None,
|
value_at_risk_photons: int % None = None,
|
annot
|
345 |
measured
|
ReplaceBinaryOperator_BitOr_Mul
|
value_at_risk_photons: int | None = None,
|
value_at_risk_photons: int * None = None,
|
annot
|
345 |
measured
|
ReplaceBinaryOperator_BitOr_Pow
|
value_at_risk_photons: int | None = None,
|
value_at_risk_photons: int ** None = None,
|
annot
|
345 |
measured
|
ReplaceBinaryOperator_BitOr_RShift
|
value_at_risk_photons: int | None = None,
|
value_at_risk_photons: int >> None = None,
|
annot
|
345 |
measured
|
ReplaceBinaryOperator_BitOr_Sub
|
value_at_risk_photons: int | None = None,
|
value_at_risk_photons: int - None = None,
|
annot
|
347 |
measured
|
ReplaceFalseWithTrue
|
accept_flat_burial: bool = False,
|
accept_flat_burial: bool = True,
|
|
389 |
measure_margin_from_btc_block_times
|
ReplaceFalseWithTrue
|
accept_flat_burial: bool = False,
|
accept_flat_burial: bool = True,
|
|
418 |
measure_margin_from_btc_block_times
|
NumberReplacer
|
if not isinstance(btc_tail_percentile, (int, float)) or not (50.0 <= btc_tail_percentile <= 99.9):
|
if not isinstance(btc_tail_percentile, (int, float)) or not (50.0 <= btc_tail_percentile <= 100.9):
|
|
418 |
measure_margin_from_btc_block_times
|
NumberReplacer
|
if not isinstance(btc_tail_percentile, (int, float)) or not (50.0 <= btc_tail_percentile <= 99.9):
|
if not isinstance(btc_tail_percentile, (int, float)) or not ( 49.0 <= btc_tail_percentile <= 99.9):
|
|
418 |
measure_margin_from_btc_block_times
|
NumberReplacer
|
if not isinstance(btc_tail_percentile, (int, float)) or not (50.0 <= btc_tail_percentile <= 99.9):
|
if not isinstance(btc_tail_percentile, (int, float)) or not ( 51.0 <= btc_tail_percentile <= 99.9):
|
|
418 |
measure_margin_from_btc_block_times
|
ReplaceComparisonOperator_LtE_Lt
|
if not isinstance(btc_tail_percentile, (int, float)) or not (50.0 <= btc_tail_percentile <= 99.9):
|
if not isinstance(btc_tail_percentile, (int, float)) or not (50.0 < btc_tail_percentile <= 99.9):
|
|
420 |
measure_margin_from_btc_block_times
|
NumberReplacer
|
if not isinstance(rxd_block_interval_s, (int, float)) or rxd_block_interval_s <= 0:
|
if not isinstance(rxd_block_interval_s, (int, float)) or rxd_block_interval_s <= 1:
|
|
420 |
measure_margin_from_btc_block_times
|
NumberReplacer
|
if not isinstance(rxd_block_interval_s, (int, float)) or rxd_block_interval_s <= 0:
|
if not isinstance(rxd_block_interval_s, (int, float)) or rxd_block_interval_s <= -1:
|
|
420 |
measure_margin_from_btc_block_times
|
ReplaceComparisonOperator_LtE_Eq
|
if not isinstance(rxd_block_interval_s, (int, float)) or rxd_block_interval_s <= 0:
|
if not isinstance(rxd_block_interval_s, (int, float)) or rxd_block_interval_s == 0:
|
|
420 |
measure_margin_from_btc_block_times
|
ReplaceComparisonOperator_LtE_Lt
|
if not isinstance(rxd_block_interval_s, (int, float)) or rxd_block_interval_s <= 0:
|
if not isinstance(rxd_block_interval_s, (int, float)) or rxd_block_interval_s < 0:
|
|
420 |
measure_margin_from_btc_block_times
|
ReplaceOrWithAnd
|
if not isinstance(rxd_block_interval_s, (int, float)) or rxd_block_interval_s <= 0:
|
if not isinstance(rxd_block_interval_s, (int, float)) and rxd_block_interval_s <= 0:
|
|
427 |
measure_margin_from_btc_block_times
|
NumberReplacer
|
gaps = [max(0, ordered[i + 1] - ordered[i]) for i in range(len(ordered) - 1)]
|
gaps = [max(0, ordered[i + 1] - ordered[i]) for i in range(len(ordered) - 2)]
|
|
427 |
measure_margin_from_btc_block_times
|
NumberReplacer
|
gaps = [max(0, ordered[i + 1] - ordered[i]) for i in range(len(ordered) - 1)]
|
gaps = [max( -1, ordered[i + 1] - ordered[i]) for i in range(len(ordered) - 1)]
|
|
427 |
measure_margin_from_btc_block_times
|
NumberReplacer
|
gaps = [max(0, ordered[i + 1] - ordered[i]) for i in range(len(ordered) - 1)]
|
gaps = [max( 1, ordered[i + 1] - ordered[i]) for i in range(len(ordered) - 1)]
|
|
427 |
measure_margin_from_btc_block_times
|
ReplaceBinaryOperator_Add_BitOr
|
gaps = [max(0, ordered[i + 1] - ordered[i]) for i in range(len(ordered) - 1)]
|
gaps = [max(0, ordered[i | 1] - ordered[i]) for i in range(len(ordered) - 1)]
|
|
427 |
measure_margin_from_btc_block_times
|
ReplaceBinaryOperator_Add_BitXor
|
gaps = [max(0, ordered[i + 1] - ordered[i]) for i in range(len(ordered) - 1)]
|
gaps = [max(0, ordered[i ^ 1] - ordered[i]) for i in range(len(ordered) - 1)]
|
|
427 |
measure_margin_from_btc_block_times
|
ReplaceBinaryOperator_Sub_Mod
|
gaps = [max(0, ordered[i + 1] - ordered[i]) for i in range(len(ordered) - 1)]
|
gaps = [max(0, ordered[i + 1] % ordered[i]) for i in range(len(ordered) - 1)]
|
|
432 |
measure_margin_from_btc_block_times
|
NumberReplacer
|
median_gap = sorted_gaps[len(sorted_gaps) // 2]
|
median_gap = sorted_gaps[len(sorted_gaps) // 3]
|
|
432 |
measure_margin_from_btc_block_times
|
ReplaceBinaryOperator_FloorDiv_BitAnd
|
median_gap = sorted_gaps[len(sorted_gaps) // 2]
|
median_gap = sorted_gaps[len(sorted_gaps) & 2]
|
|
432 |
measure_margin_from_btc_block_times
|
ReplaceBinaryOperator_FloorDiv_Mod
|
median_gap = sorted_gaps[len(sorted_gaps) // 2]
|
median_gap = sorted_gaps[len(sorted_gaps) % 2]
|
|
432 |
measure_margin_from_btc_block_times
|
ReplaceBinaryOperator_FloorDiv_RShift
|
median_gap = sorted_gaps[len(sorted_gaps) // 2]
|
median_gap = sorted_gaps[len(sorted_gaps) >> 2]
|
|
434 |
measure_margin_from_btc_block_times
|
NumberReplacer
|
rank = max(1, math.ceil(btc_tail_percentile / 100.0 * len(sorted_gaps)))
|
rank = max(1, math.ceil(btc_tail_percentile / 101.0 * len(sorted_gaps)))
|
|
434 |
measure_margin_from_btc_block_times
|
NumberReplacer
|
rank = max(1, math.ceil(btc_tail_percentile / 100.0 * len(sorted_gaps)))
|
rank = max( 0, math.ceil(btc_tail_percentile / 100.0 * len(sorted_gaps)))
|
|
434 |
measure_margin_from_btc_block_times
|
NumberReplacer
|
rank = max(1, math.ceil(btc_tail_percentile / 100.0 * len(sorted_gaps)))
|
rank = max( 2, math.ceil(btc_tail_percentile / 100.0 * len(sorted_gaps)))
|
|
436 |
measure_margin_from_btc_block_times
|
AddNot
|
measured_block_interval_s = float(median_gap) if median_gap > 0 else 600.0
|
measured_block_interval_s = float(median_gap) if not median_gap > 0 else 600.0
|
|
436 |
measure_margin_from_btc_block_times
|
NumberReplacer
|
measured_block_interval_s = float(median_gap) if median_gap > 0 else 600.0
|
measured_block_interval_s = float(median_gap) if median_gap > -1 else 600.0
|
|
436 |
measure_margin_from_btc_block_times
|
NumberReplacer
|
measured_block_interval_s = float(median_gap) if median_gap > 0 else 600.0
|
measured_block_interval_s = float(median_gap) if median_gap > 0 else 601.0
|
|
436 |
measure_margin_from_btc_block_times
|
NumberReplacer
|
measured_block_interval_s = float(median_gap) if median_gap > 0 else 600.0
|
measured_block_interval_s = float(median_gap) if median_gap > 0 else 599.0
|
|
436 |
measure_margin_from_btc_block_times
|
NumberReplacer
|
measured_block_interval_s = float(median_gap) if median_gap > 0 else 600.0
|
measured_block_interval_s = float(median_gap) if median_gap > 1 else 600.0
|
|
436 |
measure_margin_from_btc_block_times
|
ReplaceComparisonOperator_Gt_Eq
|
measured_block_interval_s = float(median_gap) if median_gap > 0 else 600.0
|
measured_block_interval_s = float(median_gap) if median_gap == 0 else 600.0
|
|
436 |
measure_margin_from_btc_block_times
|
ReplaceComparisonOperator_Gt_GtE
|
measured_block_interval_s = float(median_gap) if median_gap > 0 else 600.0
|
measured_block_interval_s = float(median_gap) if median_gap >= 0 else 600.0
|
|
436 |
measure_margin_from_btc_block_times
|
ReplaceComparisonOperator_Gt_Lt
|
measured_block_interval_s = float(median_gap) if median_gap > 0 else 600.0
|
measured_block_interval_s = float(median_gap) if median_gap < 0 else 600.0
|
|
436 |
measure_margin_from_btc_block_times
|
ReplaceComparisonOperator_Gt_LtE
|
measured_block_interval_s = float(median_gap) if median_gap > 0 else 600.0
|
measured_block_interval_s = float(median_gap) if median_gap <= 0 else 600.0
|
|
436 |
measure_margin_from_btc_block_times
|
ReplaceComparisonOperator_Gt_NotEq
|
measured_block_interval_s = float(median_gap) if median_gap > 0 else 600.0
|
measured_block_interval_s = float(median_gap) if median_gap != 0 else 600.0
|
|
441 |
measure_margin_from_btc_block_times
|
NumberReplacer
|
margin_blocks = max(1, math.ceil(tail_gap_s / measured_block_interval_s))
|
margin_blocks = max( 0, math.ceil(tail_gap_s / measured_block_interval_s))
|
|
441 |
measure_margin_from_btc_block_times
|
NumberReplacer
|
margin_blocks = max(1, math.ceil(tail_gap_s / measured_block_interval_s))
|
margin_blocks = max( 2, math.ceil(tail_gap_s / measured_block_interval_s))
|
|
441 |
measure_margin_from_btc_block_times
|
ReplaceBinaryOperator_Div_FloorDiv
|
margin_blocks = max(1, math.ceil(tail_gap_s / measured_block_interval_s))
|
margin_blocks = max(1, math.ceil(tail_gap_s // measured_block_interval_s))
|
|
490 |
assert_timelock_margin
|
ReplaceOrWithAnd
|
if not isinstance(t_btc, Timelock) or not isinstance(t_rxd, Timelock):
|
if not isinstance(t_btc, Timelock) and not isinstance(t_rxd, Timelock):
|
|
505 |
assert_timelock_margin
|
ExceptionReplacer
|
except ValidationError:
|
except CosmicRayTestingException:
|
|
507 |
assert_timelock_margin
|
ExceptionReplacer
|
except Exception as exc: # pragma: no cover - normalize_to only raises ValidationError
|
except CosmicRayTestingException as exc: # pragma: no cover - normalize_to only raises ValidationError
|
|
510 |
assert_timelock_margin
|
ReplaceComparisonOperator_LtE_Lt
|
if btc_blocks <= rxd_blocks:
|
if btc_blocks < rxd_blocks:
|
|
514 |
assert_timelock_margin
|
ReplaceBinaryOperator_Sub_BitXor
|
if (btc_blocks - rxd_blocks) < margin_blocks:
|
if (btc_blocks ^ rxd_blocks) < margin_blocks:
|
|
514 |
assert_timelock_margin
|
ReplaceComparisonOperator_Lt_LtE
|
if (btc_blocks - rxd_blocks) < margin_blocks:
|
if (btc_blocks - rxd_blocks) <= margin_blocks:
|
|
516 |
assert_timelock_margin
|
ReplaceBinaryOperator_Sub_Add
|
f"insufficient margin: t_btc - t_rxd = {btc_blocks - rxd_blocks} blk < required {margin_blocks} blk "
|
f"insufficient margin: t_btc - t_rxd = {btc_blocks + rxd_blocks} blk < required {margin_blocks} blk "
|
|
516 |
assert_timelock_margin
|
ReplaceBinaryOperator_Sub_BitAnd
|
f"insufficient margin: t_btc - t_rxd = {btc_blocks - rxd_blocks} blk < required {margin_blocks} blk "
|
f"insufficient margin: t_btc - t_rxd = {btc_blocks & rxd_blocks} blk < required {margin_blocks} blk "
|
|
516 |
assert_timelock_margin
|
ReplaceBinaryOperator_Sub_BitOr
|
f"insufficient margin: t_btc - t_rxd = {btc_blocks - rxd_blocks} blk < required {margin_blocks} blk "
|
f"insufficient margin: t_btc - t_rxd = {btc_blocks | rxd_blocks} blk < required {margin_blocks} blk "
|
|
516 |
assert_timelock_margin
|
ReplaceBinaryOperator_Sub_BitXor
|
f"insufficient margin: t_btc - t_rxd = {btc_blocks - rxd_blocks} blk < required {margin_blocks} blk "
|
f"insufficient margin: t_btc - t_rxd = {btc_blocks ^ rxd_blocks} blk < required {margin_blocks} blk "
|
|
516 |
assert_timelock_margin
|
ReplaceBinaryOperator_Sub_Div
|
f"insufficient margin: t_btc - t_rxd = {btc_blocks - rxd_blocks} blk < required {margin_blocks} blk "
|
f"insufficient margin: t_btc - t_rxd = {btc_blocks / rxd_blocks} blk < required {margin_blocks} blk "
|
|
516 |
assert_timelock_margin
|
ReplaceBinaryOperator_Sub_FloorDiv
|
f"insufficient margin: t_btc - t_rxd = {btc_blocks - rxd_blocks} blk < required {margin_blocks} blk "
|
f"insufficient margin: t_btc - t_rxd = {btc_blocks // rxd_blocks} blk < required {margin_blocks} blk "
|
|
516 |
assert_timelock_margin
|
ReplaceBinaryOperator_Sub_LShift
|
f"insufficient margin: t_btc - t_rxd = {btc_blocks - rxd_blocks} blk < required {margin_blocks} blk "
|
f"insufficient margin: t_btc - t_rxd = {btc_blocks << rxd_blocks} blk < required {margin_blocks} blk "
|
|
516 |
assert_timelock_margin
|
ReplaceBinaryOperator_Sub_Mod
|
f"insufficient margin: t_btc - t_rxd = {btc_blocks - rxd_blocks} blk < required {margin_blocks} blk "
|
f"insufficient margin: t_btc - t_rxd = {btc_blocks % rxd_blocks} blk < required {margin_blocks} blk "
|
|
516 |
assert_timelock_margin
|
ReplaceBinaryOperator_Sub_Mul
|
f"insufficient margin: t_btc - t_rxd = {btc_blocks - rxd_blocks} blk < required {margin_blocks} blk "
|
f"insufficient margin: t_btc - t_rxd = {btc_blocks * rxd_blocks} blk < required {margin_blocks} blk "
|
|
516 |
assert_timelock_margin
|
ReplaceBinaryOperator_Sub_Pow
|
f"insufficient margin: t_btc - t_rxd = {btc_blocks - rxd_blocks} blk < required {margin_blocks} blk "
|
f"insufficient margin: t_btc - t_rxd = {btc_blocks ** rxd_blocks} blk < required {margin_blocks} blk "
|
|
516 |
assert_timelock_margin
|
ReplaceBinaryOperator_Sub_RShift
|
f"insufficient margin: t_btc - t_rxd = {btc_blocks - rxd_blocks} blk < required {margin_blocks} blk "
|
f"insufficient margin: t_btc - t_rxd = {btc_blocks >> rxd_blocks} blk < required {margin_blocks} blk "
|
|
517 |
assert_timelock_margin
|
AddNot
|
f"({'measured' if policy.is_measured else 'ESTIMATED'})"
|
f"({'measured' if not policy.is_measured else 'ESTIMATED'})"
|
|
550 |
taker_refund_window_open
|
NumberReplacer
|
block_interval_s: float = 600.0,
|
block_interval_s: float = 601.0,
|
|
550 |
taker_refund_window_open
|
NumberReplacer
|
block_interval_s: float = 600.0,
|
block_interval_s: float = 599.0,
|
|
576 |
taker_refund_window_open
|
ZeroIterationForLoop
|
for label, val in (("now_block_height", now_block_height), ("asset_locked_at_height", asset_locked_at_height)):
|
for label, val in []:
|
|
577 |
taker_refund_window_open
|
NumberReplacer
|
if not isinstance(val, int) or isinstance(val, bool) or val < 0:
|
if not isinstance(val, int) or isinstance(val, bool) or val < -1:
|
|
577 |
taker_refund_window_open
|
NumberReplacer
|
if not isinstance(val, int) or isinstance(val, bool) or val < 0:
|
if not isinstance(val, int) or isinstance(val, bool) or val < 1:
|
|
577 |
taker_refund_window_open
|
ReplaceComparisonOperator_Lt_Eq
|
if not isinstance(val, int) or isinstance(val, bool) or val < 0:
|
if not isinstance(val, int) or isinstance(val, bool) or val == 0:
|
|
577 |
taker_refund_window_open
|
ReplaceComparisonOperator_Lt_LtE
|
if not isinstance(val, int) or isinstance(val, bool) or val < 0:
|
if not isinstance(val, int) or isinstance(val, bool) or val <= 0:
|
|
577 |
taker_refund_window_open
|
ReplaceOrWithAnd
|
if not isinstance(val, int) or isinstance(val, bool) or val < 0:
|
if not isinstance(val, int) and isinstance(val, bool) or val < 0:
|
|
577 |
taker_refund_window_open
|
ReplaceOrWithAnd
|
if not isinstance(val, int) or isinstance(val, bool) or val < 0:
|
if not isinstance(val, int) or isinstance(val, bool) and val < 0:
|
|
579 |
taker_refund_window_open
|
NumberReplacer
|
if not isinstance(safety_window_blocks, int) or isinstance(safety_window_blocks, bool) or safety_window_blocks < 0:
|
if not isinstance(safety_window_blocks, int) or isinstance(safety_window_blocks, bool) or safety_window_blocks < -1:
|
|
579 |
taker_refund_window_open
|
NumberReplacer
|
if not isinstance(safety_window_blocks, int) or isinstance(safety_window_blocks, bool) or safety_window_blocks < 0:
|
if not isinstance(safety_window_blocks, int) or isinstance(safety_window_blocks, bool) or safety_window_blocks < 1:
|
|
579 |
taker_refund_window_open
|
ReplaceComparisonOperator_Lt_Eq
|
if not isinstance(safety_window_blocks, int) or isinstance(safety_window_blocks, bool) or safety_window_blocks < 0:
|
if not isinstance(safety_window_blocks, int) or isinstance(safety_window_blocks, bool) or safety_window_blocks == 0:
|
|
579 |
taker_refund_window_open
|
ReplaceComparisonOperator_Lt_LtE
|
if not isinstance(safety_window_blocks, int) or isinstance(safety_window_blocks, bool) or safety_window_blocks < 0:
|
if not isinstance(safety_window_blocks, int) or isinstance(safety_window_blocks, bool) or safety_window_blocks <= 0:
|
|
579 |
taker_refund_window_open
|
ReplaceOrWithAnd
|
if not isinstance(safety_window_blocks, int) or isinstance(safety_window_blocks, bool) or safety_window_blocks < 0:
|
if not isinstance(safety_window_blocks, int) and isinstance(safety_window_blocks, bool) or safety_window_blocks < 0:
|
|
579 |
taker_refund_window_open
|
ReplaceOrWithAnd
|
if not isinstance(safety_window_blocks, int) or isinstance(safety_window_blocks, bool) or safety_window_blocks < 0:
|
if not isinstance(safety_window_blocks, int) or isinstance(safety_window_blocks, bool) and safety_window_blocks < 0:
|
|
615 |
_value_scaled_burial_blocks
|
ReplaceBinaryOperator_BitOr_Add
|
def _value_scaled_burial_blocks(policy: MarginPolicy, value_at_risk_photons: int | None) -> int:
|
def _value_scaled_burial_blocks(policy: MarginPolicy, value_at_risk_photons: int + None) -> int:
|
annot
|
615 |
_value_scaled_burial_blocks
|
ReplaceBinaryOperator_BitOr_BitAnd
|
def _value_scaled_burial_blocks(policy: MarginPolicy, value_at_risk_photons: int | None) -> int:
|
def _value_scaled_burial_blocks(policy: MarginPolicy, value_at_risk_photons: int & None) -> int:
|
annot
|
615 |
_value_scaled_burial_blocks
|
ReplaceBinaryOperator_BitOr_BitXor
|
def _value_scaled_burial_blocks(policy: MarginPolicy, value_at_risk_photons: int | None) -> int:
|
def _value_scaled_burial_blocks(policy: MarginPolicy, value_at_risk_photons: int ^ None) -> int:
|
annot
|
615 |
_value_scaled_burial_blocks
|
ReplaceBinaryOperator_BitOr_Div
|
def _value_scaled_burial_blocks(policy: MarginPolicy, value_at_risk_photons: int | None) -> int:
|
def _value_scaled_burial_blocks(policy: MarginPolicy, value_at_risk_photons: int / None) -> int:
|
annot
|
615 |
_value_scaled_burial_blocks
|
ReplaceBinaryOperator_BitOr_FloorDiv
|
def _value_scaled_burial_blocks(policy: MarginPolicy, value_at_risk_photons: int | None) -> int:
|
def _value_scaled_burial_blocks(policy: MarginPolicy, value_at_risk_photons: int // None) -> int:
|
annot
|
615 |
_value_scaled_burial_blocks
|
ReplaceBinaryOperator_BitOr_LShift
|
def _value_scaled_burial_blocks(policy: MarginPolicy, value_at_risk_photons: int | None) -> int:
|
def _value_scaled_burial_blocks(policy: MarginPolicy, value_at_risk_photons: int << None) -> int:
|
annot
|
615 |
_value_scaled_burial_blocks
|
ReplaceBinaryOperator_BitOr_Mod
|
def _value_scaled_burial_blocks(policy: MarginPolicy, value_at_risk_photons: int | None) -> int:
|
def _value_scaled_burial_blocks(policy: MarginPolicy, value_at_risk_photons: int % None) -> int:
|
annot
|
615 |
_value_scaled_burial_blocks
|
ReplaceBinaryOperator_BitOr_Mul
|
def _value_scaled_burial_blocks(policy: MarginPolicy, value_at_risk_photons: int | None) -> int:
|
def _value_scaled_burial_blocks(policy: MarginPolicy, value_at_risk_photons: int * None) -> int:
|
annot
|
615 |
_value_scaled_burial_blocks
|
ReplaceBinaryOperator_BitOr_Pow
|
def _value_scaled_burial_blocks(policy: MarginPolicy, value_at_risk_photons: int | None) -> int:
|
def _value_scaled_burial_blocks(policy: MarginPolicy, value_at_risk_photons: int ** None) -> int:
|
annot
|
615 |
_value_scaled_burial_blocks
|
ReplaceBinaryOperator_BitOr_RShift
|
def _value_scaled_burial_blocks(policy: MarginPolicy, value_at_risk_photons: int | None) -> int:
|
def _value_scaled_burial_blocks(policy: MarginPolicy, value_at_risk_photons: int >> None) -> int:
|
annot
|
615 |
_value_scaled_burial_blocks
|
ReplaceBinaryOperator_BitOr_Sub
|
def _value_scaled_burial_blocks(policy: MarginPolicy, value_at_risk_photons: int | None) -> int:
|
def _value_scaled_burial_blocks(policy: MarginPolicy, value_at_risk_photons: int - None) -> int:
|
annot
|
645 |
(module level)
|
NumberReplacer
|
_DEFAULT_REORG_SAFETY_FACTOR = 2.0
|
_DEFAULT_REORG_SAFETY_FACTOR = 3.0
|
|
675 |
max_protected_value
|
NumberReplacer
|
or rxd_claim_burial_blocks <= 0
|
or rxd_claim_burial_blocks <= 1
|
|
675 |
max_protected_value
|
ReplaceComparisonOperator_LtE_Eq
|
or rxd_claim_burial_blocks <= 0
|
or rxd_claim_burial_blocks == 0
|
|
678 |
max_protected_value
|
NumberReplacer
|
if not isinstance(reorg_cost_per_block, int) or isinstance(reorg_cost_per_block, bool) or reorg_cost_per_block <= 0:
|
if not isinstance(reorg_cost_per_block, int) or isinstance(reorg_cost_per_block, bool) or reorg_cost_per_block <= 1:
|
|
678 |
max_protected_value
|
ReplaceComparisonOperator_LtE_Eq
|
if not isinstance(reorg_cost_per_block, int) or isinstance(reorg_cost_per_block, bool) or reorg_cost_per_block <= 0:
|
if not isinstance(reorg_cost_per_block, int) or isinstance(reorg_cost_per_block, bool) or reorg_cost_per_block == 0:
|
|
678 |
max_protected_value
|
ReplaceOrWithAnd
|
if not isinstance(reorg_cost_per_block, int) or isinstance(reorg_cost_per_block, bool) or reorg_cost_per_block <= 0:
|
if not isinstance(reorg_cost_per_block, int) and isinstance(reorg_cost_per_block, bool) or reorg_cost_per_block <= 0:
|
|
685 |
max_protected_value
|
ReplaceOrWithAnd
|
or isinstance(safety_factor, bool)
|
and isinstance(safety_factor, bool)
|
|
696 |
max_protected_value
|
ReplaceBinaryOperator_FloorDiv_Div
|
return (rxd_claim_burial_blocks * reorg_cost_per_block * ratio.denominator) // ratio.numerator
|
return (rxd_claim_burial_blocks * reorg_cost_per_block * ratio.denominator) / ratio.numerator
|
|
696 |
max_protected_value
|
ReplaceBinaryOperator_Mul_Div
|
return (rxd_claim_burial_blocks * reorg_cost_per_block * ratio.denominator) // ratio.numerator
|
return (rxd_claim_burial_blocks * reorg_cost_per_block / ratio.denominator) // ratio.numerator
|
|
696 |
max_protected_value
|
ReplaceBinaryOperator_Mul_FloorDiv
|
return (rxd_claim_burial_blocks * reorg_cost_per_block * ratio.denominator) // ratio.numerator
|
return (rxd_claim_burial_blocks * reorg_cost_per_block // ratio.denominator) // ratio.numerator
|
|
696 |
max_protected_value
|
ReplaceBinaryOperator_Mul_Pow
|
return (rxd_claim_burial_blocks * reorg_cost_per_block * ratio.denominator) // ratio.numerator
|
return (rxd_claim_burial_blocks * reorg_cost_per_block ** ratio.denominator) // ratio.numerator
|
|
706 |
_reserve_to_blocks
|
ReplaceComparisonOperator_Is_Eq
|
if reserve.unit is TimeUnit.BLOCKS:
|
if reserve.unit == TimeUnit.BLOCKS:
|
|
718 |
assess_claim_finality
|
ReplaceBinaryOperator_BitOr_Add
|
value_at_risk_photons: int | None = None,
|
value_at_risk_photons: int + None = None,
|
annot
|
718 |
assess_claim_finality
|
ReplaceBinaryOperator_BitOr_BitAnd
|
value_at_risk_photons: int | None = None,
|
value_at_risk_photons: int & None = None,
|
annot
|
718 |
assess_claim_finality
|
ReplaceBinaryOperator_BitOr_BitXor
|
value_at_risk_photons: int | None = None,
|
value_at_risk_photons: int ^ None = None,
|
annot
|
718 |
assess_claim_finality
|
ReplaceBinaryOperator_BitOr_Div
|
value_at_risk_photons: int | None = None,
|
value_at_risk_photons: int / None = None,
|
annot
|
718 |
assess_claim_finality
|
ReplaceBinaryOperator_BitOr_FloorDiv
|
value_at_risk_photons: int | None = None,
|
value_at_risk_photons: int // None = None,
|
annot
|
718 |
assess_claim_finality
|
ReplaceBinaryOperator_BitOr_LShift
|
value_at_risk_photons: int | None = None,
|
value_at_risk_photons: int << None = None,
|
annot
|
718 |
assess_claim_finality
|
ReplaceBinaryOperator_BitOr_Mod
|
value_at_risk_photons: int | None = None,
|
value_at_risk_photons: int % None = None,
|
annot
|
718 |
assess_claim_finality
|
ReplaceBinaryOperator_BitOr_Mul
|
value_at_risk_photons: int | None = None,
|
value_at_risk_photons: int * None = None,
|
annot
|
718 |
assess_claim_finality
|
ReplaceBinaryOperator_BitOr_Pow
|
value_at_risk_photons: int | None = None,
|
value_at_risk_photons: int ** None = None,
|
annot
|
718 |
assess_claim_finality
|
ReplaceBinaryOperator_BitOr_RShift
|
value_at_risk_photons: int | None = None,
|
value_at_risk_photons: int >> None = None,
|
annot
|
718 |
assess_claim_finality
|
ReplaceBinaryOperator_BitOr_Sub
|
value_at_risk_photons: int | None = None,
|
value_at_risk_photons: int - None = None,
|
annot
|
758 |
assess_claim_finality
|
NumberReplacer
|
if not isinstance(val, int) or isinstance(val, bool) or val < 0:
|
if not isinstance(val, int) or isinstance(val, bool) or val < 1:
|
|
758 |
assess_claim_finality
|
ReplaceComparisonOperator_Lt_LtE
|
if not isinstance(val, int) or isinstance(val, bool) or val < 0:
|
if not isinstance(val, int) or isinstance(val, bool) or val <= 0:
|
|
758 |
assess_claim_finality
|
ReplaceOrWithAnd
|
if not isinstance(val, int) or isinstance(val, bool) or val < 0:
|
if not isinstance(val, int) and isinstance(val, bool) or val < 0:
|
|
782 |
assess_claim_finality
|
ExceptionReplacer
|
except ValidationError:
|
except CosmicRayTestingException:
|
|
784 |
assess_claim_finality
|
ExceptionReplacer
|
except Exception as exc: # pragma: no cover - normalize_to only raises ValidationError
|
except CosmicRayTestingException as exc: # pragma: no cover - normalize_to only raises ValidationError
|
|
801 |
assess_claim_finality
|
ReplaceBinaryOperator_Sub_Mod
|
blocks_left = refund_opens_at - now_rxd_height
|
blocks_left = refund_opens_at % now_rxd_height
|
|
804 |
assess_claim_finality
|
ReplaceComparisonOperator_Is_Eq
|
if state is CounterClaimState.COUNTER_CHAIN_NOT_FINALIZING:
|
if state == CounterClaimState.COUNTER_CHAIN_NOT_FINALIZING:
|
|
807 |
assess_claim_finality
|
ReplaceComparisonOperator_Is_Eq
|
if state is CounterClaimState.FINAL:
|
if state == CounterClaimState.FINAL:
|
|
819 |
assess_claim_finality
|
ReplaceComparisonOperator_NotEq_Gt
|
if counter_claim_finality.required_depth != required_depth_blocks:
|
if counter_claim_finality.required_depth > required_depth_blocks:
|
|
819 |
assess_claim_finality
|
ReplaceComparisonOperator_NotEq_IsNot
|
if counter_claim_finality.required_depth != required_depth_blocks:
|
if counter_claim_finality.required_depth is not required_depth_blocks:
|
|
826 |
assess_claim_finality
|
ReplaceBinaryOperator_Div_FloorDiv
|
counter_reserve_rxd = math.ceil(required_depth_blocks * policy.block_interval_s / policy.rxd_block_interval_s)
|
counter_reserve_rxd = math.ceil(required_depth_blocks * policy.block_interval_s // policy.rxd_block_interval_s)
|
|
837 |
assess_claim_finality
|
ReplaceBinaryOperator_Div_FloorDiv
|
counter_reserve_rxd = math.ceil(policy.eth_finalization_window_s / policy.rxd_block_interval_s)
|
counter_reserve_rxd = math.ceil(policy.eth_finalization_window_s // policy.rxd_block_interval_s)
|
|
879 |
(module level)
|
ReplaceTrueWithFalse
|
@dataclass(frozen=True)
|
@dataclass(frozen=False)
|
|
892 |
(module level)
|
ReplaceTrueWithFalse
|
@dataclass(frozen=True)
|
@dataclass(frozen=False)
|
|
898 |
CoordinatorConfig
|
NumberReplacer
|
maker_stall_safety_window_blocks: int = 6
|
maker_stall_safety_window_blocks: int = 7
|
|
898 |
CoordinatorConfig
|
NumberReplacer
|
maker_stall_safety_window_blocks: int = 6
|
maker_stall_safety_window_blocks: int = 5
|
|
902 |
CoordinatorConfig
|
NumberReplacer
|
min_ref_confirmations: int = 6
|
min_ref_confirmations: int = 5
|
|
902 |
CoordinatorConfig
|
NumberReplacer
|
min_ref_confirmations: int = 6
|
min_ref_confirmations: int = 7
|
|
918 |
CoordinatorConfig
|
ReplaceFalseWithTrue
|
accept_estimated_eth_margins: bool = False
|
accept_estimated_eth_margins: bool = True
|
|
921 |
CoordinatorConfig
|
NumberReplacer
|
min_credential_confirmations: int = 6
|
min_credential_confirmations: int = 7
|
|
921 |
CoordinatorConfig
|
NumberReplacer
|
min_credential_confirmations: int = 6
|
min_credential_confirmations: int = 5
|
|
933 |
__post_init__
|
NumberReplacer
|
if not isinstance(w, int) or isinstance(w, bool) or w < 0:
|
if not isinstance(w, int) or isinstance(w, bool) or w < 1:
|
|
933 |
__post_init__
|
NumberReplacer
|
if not isinstance(w, int) or isinstance(w, bool) or w < 0:
|
if not isinstance(w, int) or isinstance(w, bool) or w < -1:
|
|
933 |
__post_init__
|
ReplaceComparisonOperator_Lt_Eq
|
if not isinstance(w, int) or isinstance(w, bool) or w < 0:
|
if not isinstance(w, int) or isinstance(w, bool) or w == 0:
|
|
933 |
__post_init__
|
ReplaceComparisonOperator_Lt_LtE
|
if not isinstance(w, int) or isinstance(w, bool) or w < 0:
|
if not isinstance(w, int) or isinstance(w, bool) or w <= 0:
|
|
933 |
__post_init__
|
ReplaceOrWithAnd
|
if not isinstance(w, int) or isinstance(w, bool) or w < 0:
|
if not isinstance(w, int) or isinstance(w, bool) and w < 0:
|
|
933 |
__post_init__
|
ReplaceOrWithAnd
|
if not isinstance(w, int) or isinstance(w, bool) or w < 0:
|
if not isinstance(w, int) and isinstance(w, bool) or w < 0:
|
|
936 |
__post_init__
|
NumberReplacer
|
if not isinstance(c, int) or isinstance(c, bool) or c < 0:
|
if not isinstance(c, int) or isinstance(c, bool) or c < 1:
|
|
936 |
__post_init__
|
ReplaceComparisonOperator_Lt_LtE
|
if not isinstance(c, int) or isinstance(c, bool) or c < 0:
|
if not isinstance(c, int) or isinstance(c, bool) or c <= 0:
|
|
939 |
__post_init__
|
NumberReplacer
|
if not isinstance(cc, int) or isinstance(cc, bool) or cc < 0:
|
if not isinstance(cc, int) or isinstance(cc, bool) or cc < -1:
|
|
939 |
__post_init__
|
NumberReplacer
|
if not isinstance(cc, int) or isinstance(cc, bool) or cc < 0:
|
if not isinstance(cc, int) or isinstance(cc, bool) or cc < 1:
|
|
939 |
__post_init__
|
ReplaceComparisonOperator_Lt_Eq
|
if not isinstance(cc, int) or isinstance(cc, bool) or cc < 0:
|
if not isinstance(cc, int) or isinstance(cc, bool) or cc == 0:
|
|
939 |
__post_init__
|
ReplaceComparisonOperator_Lt_LtE
|
if not isinstance(cc, int) or isinstance(cc, bool) or cc < 0:
|
if not isinstance(cc, int) or isinstance(cc, bool) or cc <= 0:
|
|
939 |
__post_init__
|
ReplaceOrWithAnd
|
if not isinstance(cc, int) or isinstance(cc, bool) or cc < 0:
|
if not isinstance(cc, int) or isinstance(cc, bool) and cc < 0:
|
|
939 |
__post_init__
|
ReplaceOrWithAnd
|
if not isinstance(cc, int) or isinstance(cc, bool) or cc < 0:
|
if not isinstance(cc, int) and isinstance(cc, bool) or cc < 0:
|
|
966 |
_serialized_step
|
RemoveDecorator
|
`` |
`` |
|
1026 |
__init__
|
ReplaceBinaryOperator_BitOr_Add
|
persist: PersistHook | None = None,
|
persist: PersistHook + None = None,
|
annot
|
1026 |
__init__
|
ReplaceBinaryOperator_BitOr_BitAnd
|
persist: PersistHook | None = None,
|
persist: PersistHook & None = None,
|
annot
|
1026 |
__init__
|
ReplaceBinaryOperator_BitOr_BitXor
|
persist: PersistHook | None = None,
|
persist: PersistHook ^ None = None,
|
annot
|
1026 |
__init__
|
ReplaceBinaryOperator_BitOr_Div
|
persist: PersistHook | None = None,
|
persist: PersistHook / None = None,
|
annot
|
1026 |
__init__
|
ReplaceBinaryOperator_BitOr_FloorDiv
|
persist: PersistHook | None = None,
|
persist: PersistHook // None = None,
|
annot
|
1026 |
__init__
|
ReplaceBinaryOperator_BitOr_LShift
|
persist: PersistHook | None = None,
|
persist: PersistHook << None = None,
|
annot
|
1026 |
__init__
|
ReplaceBinaryOperator_BitOr_Mod
|
persist: PersistHook | None = None,
|
persist: PersistHook % None = None,
|
annot
|
1026 |
__init__
|
ReplaceBinaryOperator_BitOr_Mul
|
persist: PersistHook | None = None,
|
persist: PersistHook * None = None,
|
annot
|
1026 |
__init__
|
ReplaceBinaryOperator_BitOr_Pow
|
persist: PersistHook | None = None,
|
persist: PersistHook ** None = None,
|
annot
|
1026 |
__init__
|
ReplaceBinaryOperator_BitOr_RShift
|
persist: PersistHook | None = None,
|
persist: PersistHook >> None = None,
|
annot
|
1026 |
__init__
|
ReplaceBinaryOperator_BitOr_Sub
|
persist: PersistHook | None = None,
|
persist: PersistHook - None = None,
|
annot
|
1071 |
__init__
|
ReplaceOrWithAnd
|
or config.margin_policy.value_at_risk_photons is None
|
and config.margin_policy.value_at_risk_photons is None
|
|
1089 |
__init__
|
ReplaceComparisonOperator_Eq_GtE
|
and record.terms.asset_variant == "rxd"
|
and record.terms.asset_variant >= "rxd"
|
|
1089 |
__init__
|
ReplaceComparisonOperator_Eq_Is
|
and record.terms.asset_variant == "rxd"
|
and record.terms.asset_variant is "rxd"
|
|
1089 |
__init__
|
ReplaceComparisonOperator_Eq_LtE
|
and record.terms.asset_variant == "rxd"
|
and record.terms.asset_variant <= "rxd"
|
|
1091 |
__init__
|
ReplaceComparisonOperator_Lt_IsNot
|
and config.margin_policy.value_at_risk_photons < record.terms.radiant_amount
|
and config.margin_policy.value_at_risk_photons is not record.terms.radiant_amount
|
|
1091 |
__init__
|
ReplaceComparisonOperator_Lt_NotEq
|
and config.margin_policy.value_at_risk_photons < record.terms.radiant_amount
|
and config.margin_policy.value_at_risk_photons != record.terms.radiant_amount
|
|
1110 |
__init__
|
ReplaceComparisonOperator_NotEq_Gt
|
and record.terms.counter_chain != "btc"
|
and record.terms.counter_chain > "btc"
|
|
1110 |
__init__
|
ReplaceComparisonOperator_NotEq_IsNot
|
and record.terms.counter_chain != "btc"
|
and record.terms.counter_chain is not "btc"
|
|
1125 |
__init__
|
ReplaceComparisonOperator_NotEq_Gt
|
if record.terms.counter_chain != "btc" and config.margin_policy.eth_finalization_window_s is None:
|
if record.terms.counter_chain > "btc" and config.margin_policy.eth_finalization_window_s is None:
|
|
1125 |
__init__
|
ReplaceComparisonOperator_NotEq_IsNot
|
if record.terms.counter_chain != "btc" and config.margin_policy.eth_finalization_window_s is None:
|
if record.terms.counter_chain is not "btc" and config.margin_policy.eth_finalization_window_s is None:
|
|
1139 |
__init__
|
ReplaceComparisonOperator_NotEq_Gt
|
if record.terms.counter_chain != "btc" and config.margin_policy.is_measured:
|
if record.terms.counter_chain > "btc" and config.margin_policy.is_measured:
|
|
1139 |
__init__
|
ReplaceComparisonOperator_NotEq_IsNot
|
if record.terms.counter_chain != "btc" and config.margin_policy.is_measured:
|
if record.terms.counter_chain is not "btc" and config.margin_policy.is_measured:
|
|
1141 |
__init__
|
ReplaceBinaryOperator_Div_FloorDiv
|
fin_reserve_blocks = math.ceil(mp.eth_finalization_window_s / mp.rxd_block_interval_s)
|
fin_reserve_blocks = math.ceil(mp.eth_finalization_window_s // mp.rxd_block_interval_s)
|
|
1147 |
__init__
|
NumberReplacer
|
min_n = fin_reserve_blocks + burial_blocks - 1
|
min_n = fin_reserve_blocks + burial_blocks - 2
|
|
1147 |
__init__
|
ReplaceBinaryOperator_Add_BitOr
|
min_n = fin_reserve_blocks + burial_blocks - 1
|
min_n = fin_reserve_blocks | burial_blocks - 1
|
|
1147 |
__init__
|
ReplaceBinaryOperator_Sub_BitXor
|
min_n = fin_reserve_blocks + burial_blocks - 1
|
min_n = fin_reserve_blocks + burial_blocks ^ 1
|
|
1148 |
__init__
|
ReplaceComparisonOperator_Lt_IsNot
|
if config.maker_stall_safety_window_blocks < min_n:
|
if config.maker_stall_safety_window_blocks is not min_n:
|
|
1148 |
__init__
|
ReplaceComparisonOperator_Lt_NotEq
|
if config.maker_stall_safety_window_blocks < min_n:
|
if config.maker_stall_safety_window_blocks != min_n:
|
|
1171 |
SwapCoordinator
|
RemoveDecorator
|
`` |
`` |
|
1183 |
_persist_record
|
ReplaceBinaryOperator_Mul_Div
|
async def _persist_record(self, record: SwapRecord, *, shield: bool = False) -> None:
|
async def _persist_record(self, record: SwapRecord, /, shield: bool = False) -> None:
|
|
1183 |
_persist_record
|
ReplaceFalseWithTrue
|
async def _persist_record(self, record: SwapRecord, *, shield: bool = False) -> None:
|
async def _persist_record(self, record: SwapRecord, *, shield: bool = True) -> None:
|
|
1199 |
pre_btc_lock_check
|
ReplaceBinaryOperator_BitOr_Add
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> PreBtcLockGate:
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, *, now_unix_s: int + None = None) -> PreBtcLockGate:
|
annot
|
1199 |
pre_btc_lock_check
|
ReplaceBinaryOperator_BitOr_BitAnd
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> PreBtcLockGate:
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, *, now_unix_s: int & None = None) -> PreBtcLockGate:
|
annot
|
1199 |
pre_btc_lock_check
|
ReplaceBinaryOperator_BitOr_BitXor
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> PreBtcLockGate:
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, *, now_unix_s: int ^ None = None) -> PreBtcLockGate:
|
annot
|
1199 |
pre_btc_lock_check
|
ReplaceBinaryOperator_BitOr_Div
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> PreBtcLockGate:
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, *, now_unix_s: int / None = None) -> PreBtcLockGate:
|
annot
|
1199 |
pre_btc_lock_check
|
ReplaceBinaryOperator_BitOr_FloorDiv
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> PreBtcLockGate:
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, *, now_unix_s: int // None = None) -> PreBtcLockGate:
|
annot
|
1199 |
pre_btc_lock_check
|
ReplaceBinaryOperator_BitOr_LShift
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> PreBtcLockGate:
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, *, now_unix_s: int << None = None) -> PreBtcLockGate:
|
annot
|
1199 |
pre_btc_lock_check
|
ReplaceBinaryOperator_BitOr_Mod
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> PreBtcLockGate:
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, *, now_unix_s: int % None = None) -> PreBtcLockGate:
|
annot
|
1199 |
pre_btc_lock_check
|
ReplaceBinaryOperator_BitOr_Mul
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> PreBtcLockGate:
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, *, now_unix_s: int * None = None) -> PreBtcLockGate:
|
annot
|
1199 |
pre_btc_lock_check
|
ReplaceBinaryOperator_BitOr_Pow
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> PreBtcLockGate:
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, *, now_unix_s: int ** None = None) -> PreBtcLockGate:
|
annot
|
1199 |
pre_btc_lock_check
|
ReplaceBinaryOperator_BitOr_RShift
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> PreBtcLockGate:
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, *, now_unix_s: int >> None = None) -> PreBtcLockGate:
|
annot
|
1199 |
pre_btc_lock_check
|
ReplaceBinaryOperator_BitOr_Sub
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> PreBtcLockGate:
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, *, now_unix_s: int - None = None) -> PreBtcLockGate:
|
annot
|
1199 |
pre_btc_lock_check
|
ReplaceBinaryOperator_Mul_Div
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> PreBtcLockGate:
|
async def pre_btc_lock_check(self, terms: NegotiatedTerms, /, now_unix_s: int | None = None) -> PreBtcLockGate:
|
|
1258 |
pre_btc_lock_check
|
ExceptionReplacer
|
except Exception as exc:
|
except CosmicRayTestingException as exc:
|
|
1259 |
pre_btc_lock_check
|
ReplaceFalseWithTrue
|
return PreBtcLockGate(ok=False, reason=f"seen-store unavailable; fail-closed ({exc})")
|
return PreBtcLockGate(ok=True, reason=f"seen-store unavailable; fail-closed ({exc})")
|
|
1264 |
pre_btc_lock_check
|
ReplaceComparisonOperator_Eq_Is
|
if terms.counter_chain == "btc":
|
if terms.counter_chain is "btc":
|
|
1264 |
pre_btc_lock_check
|
ReplaceComparisonOperator_Eq_LtE
|
if terms.counter_chain == "btc":
|
if terms.counter_chain <= "btc":
|
|
1275 |
pre_btc_lock_check
|
ExceptionReplacer
|
except Exception as exc:
|
except CosmicRayTestingException as exc:
|
|
1276 |
pre_btc_lock_check
|
ReplaceFalseWithTrue
|
return PreBtcLockGate(ok=False, reason=f"could not derive BTC funding SPK; fail-closed ({exc})")
|
return PreBtcLockGate(ok=True, reason=f"could not derive BTC funding SPK; fail-closed ({exc})")
|
|
1277 |
pre_btc_lock_check
|
ReplaceComparisonOperator_NotEq_Gt
|
if expected_spk != promised_spk:
|
if expected_spk > promised_spk:
|
|
1287 |
pre_btc_lock_check
|
ExceptionReplacer
|
except Exception as exc:
|
except CosmicRayTestingException as exc:
|
|
1289 |
pre_btc_lock_check
|
ReplaceFalseWithTrue
|
ok=False, reason=f"could not verify the maker's Radiant covenant; fail-closed ({exc})"
|
ok=True, reason=f"could not verify the maker's Radiant covenant; fail-closed ({exc})"
|
|
1294 |
_asset_funding_depth
|
ReplaceBinaryOperator_BitOr_Add
|
def _asset_funding_depth(self) -> int | None:
|
def _asset_funding_depth(self) -> int + None:
|
annot
|
1294 |
_asset_funding_depth
|
ReplaceBinaryOperator_BitOr_BitAnd
|
def _asset_funding_depth(self) -> int | None:
|
def _asset_funding_depth(self) -> int & None:
|
annot
|
1294 |
_asset_funding_depth
|
ReplaceBinaryOperator_BitOr_BitXor
|
def _asset_funding_depth(self) -> int | None:
|
def _asset_funding_depth(self) -> int ^ None:
|
annot
|
1294 |
_asset_funding_depth
|
ReplaceBinaryOperator_BitOr_Div
|
def _asset_funding_depth(self) -> int | None:
|
def _asset_funding_depth(self) -> int / None:
|
annot
|
1294 |
_asset_funding_depth
|
ReplaceBinaryOperator_BitOr_FloorDiv
|
def _asset_funding_depth(self) -> int | None:
|
def _asset_funding_depth(self) -> int // None:
|
annot
|
1294 |
_asset_funding_depth
|
ReplaceBinaryOperator_BitOr_LShift
|
def _asset_funding_depth(self) -> int | None:
|
def _asset_funding_depth(self) -> int << None:
|
annot
|
1294 |
_asset_funding_depth
|
ReplaceBinaryOperator_BitOr_Mod
|
def _asset_funding_depth(self) -> int | None:
|
def _asset_funding_depth(self) -> int % None:
|
annot
|
1294 |
_asset_funding_depth
|
ReplaceBinaryOperator_BitOr_Mul
|
def _asset_funding_depth(self) -> int | None:
|
def _asset_funding_depth(self) -> int * None:
|
annot
|
1294 |
_asset_funding_depth
|
ReplaceBinaryOperator_BitOr_Pow
|
def _asset_funding_depth(self) -> int | None:
|
def _asset_funding_depth(self) -> int ** None:
|
annot
|
1294 |
_asset_funding_depth
|
ReplaceBinaryOperator_BitOr_RShift
|
def _asset_funding_depth(self) -> int | None:
|
def _asset_funding_depth(self) -> int >> None:
|
annot
|
1294 |
_asset_funding_depth
|
ReplaceBinaryOperator_BitOr_Sub
|
def _asset_funding_depth(self) -> int | None:
|
def _asset_funding_depth(self) -> int - None:
|
annot
|
1342 |
_assert_eth_timelock_ordering
|
ReplaceBinaryOperator_BitOr_Add
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, *, now_unix_s: int | None) -> None:
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, *, now_unix_s: int + None) -> None:
|
annot
|
1342 |
_assert_eth_timelock_ordering
|
ReplaceBinaryOperator_BitOr_BitAnd
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, *, now_unix_s: int | None) -> None:
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, *, now_unix_s: int & None) -> None:
|
annot
|
1342 |
_assert_eth_timelock_ordering
|
ReplaceBinaryOperator_BitOr_BitXor
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, *, now_unix_s: int | None) -> None:
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, *, now_unix_s: int ^ None) -> None:
|
annot
|
1342 |
_assert_eth_timelock_ordering
|
ReplaceBinaryOperator_BitOr_Div
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, *, now_unix_s: int | None) -> None:
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, *, now_unix_s: int / None) -> None:
|
annot
|
1342 |
_assert_eth_timelock_ordering
|
ReplaceBinaryOperator_BitOr_FloorDiv
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, *, now_unix_s: int | None) -> None:
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, *, now_unix_s: int // None) -> None:
|
annot
|
1342 |
_assert_eth_timelock_ordering
|
ReplaceBinaryOperator_BitOr_LShift
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, *, now_unix_s: int | None) -> None:
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, *, now_unix_s: int << None) -> None:
|
annot
|
1342 |
_assert_eth_timelock_ordering
|
ReplaceBinaryOperator_BitOr_Mod
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, *, now_unix_s: int | None) -> None:
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, *, now_unix_s: int % None) -> None:
|
annot
|
1342 |
_assert_eth_timelock_ordering
|
ReplaceBinaryOperator_BitOr_Mul
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, *, now_unix_s: int | None) -> None:
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, *, now_unix_s: int * None) -> None:
|
annot
|
1342 |
_assert_eth_timelock_ordering
|
ReplaceBinaryOperator_BitOr_Pow
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, *, now_unix_s: int | None) -> None:
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, *, now_unix_s: int ** None) -> None:
|
annot
|
1342 |
_assert_eth_timelock_ordering
|
ReplaceBinaryOperator_BitOr_RShift
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, *, now_unix_s: int | None) -> None:
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, *, now_unix_s: int >> None) -> None:
|
annot
|
1342 |
_assert_eth_timelock_ordering
|
ReplaceBinaryOperator_BitOr_Sub
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, *, now_unix_s: int | None) -> None:
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, *, now_unix_s: int - None) -> None:
|
annot
|
1342 |
_assert_eth_timelock_ordering
|
ReplaceBinaryOperator_Mul_Div
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, *, now_unix_s: int | None) -> None:
|
def _assert_eth_timelock_ordering(self, terms: NegotiatedTerms, /, now_unix_s: int | None) -> None:
|
|
1361 |
_assert_eth_timelock_ordering
|
ReplaceOrWithAnd
|
if policy.cross_clock_margin is None or policy.max_covenant_confirm_wait_s is None:
|
if policy.cross_clock_margin is None and policy.max_covenant_confirm_wait_s is None:
|
|
1376 |
SwapCoordinator
|
RemoveDecorator
|
`` |
`` |
|
1377 |
taker_funds_btc
|
ReplaceBinaryOperator_BitOr_Add
|
async def taker_funds_btc(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> SwapRecord:
|
async def taker_funds_btc(self, terms: NegotiatedTerms, *, now_unix_s: int + None = None) -> SwapRecord:
|
annot
|
1377 |
taker_funds_btc
|
ReplaceBinaryOperator_BitOr_BitAnd
|
async def taker_funds_btc(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> SwapRecord:
|
async def taker_funds_btc(self, terms: NegotiatedTerms, *, now_unix_s: int & None = None) -> SwapRecord:
|
annot
|
1377 |
taker_funds_btc
|
ReplaceBinaryOperator_BitOr_BitXor
|
async def taker_funds_btc(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> SwapRecord:
|
async def taker_funds_btc(self, terms: NegotiatedTerms, *, now_unix_s: int ^ None = None) -> SwapRecord:
|
annot
|
1377 |
taker_funds_btc
|
ReplaceBinaryOperator_BitOr_Div
|
async def taker_funds_btc(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> SwapRecord:
|
async def taker_funds_btc(self, terms: NegotiatedTerms, *, now_unix_s: int / None = None) -> SwapRecord:
|
annot
|
1377 |
taker_funds_btc
|
ReplaceBinaryOperator_BitOr_FloorDiv
|
async def taker_funds_btc(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> SwapRecord:
|
async def taker_funds_btc(self, terms: NegotiatedTerms, *, now_unix_s: int // None = None) -> SwapRecord:
|
annot
|
1377 |
taker_funds_btc
|
ReplaceBinaryOperator_BitOr_LShift
|
async def taker_funds_btc(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> SwapRecord:
|
async def taker_funds_btc(self, terms: NegotiatedTerms, *, now_unix_s: int << None = None) -> SwapRecord:
|
annot
|
1377 |
taker_funds_btc
|
ReplaceBinaryOperator_BitOr_Mod
|
async def taker_funds_btc(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> SwapRecord:
|
async def taker_funds_btc(self, terms: NegotiatedTerms, *, now_unix_s: int % None = None) -> SwapRecord:
|
annot
|
1377 |
taker_funds_btc
|
ReplaceBinaryOperator_BitOr_Mul
|
async def taker_funds_btc(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> SwapRecord:
|
async def taker_funds_btc(self, terms: NegotiatedTerms, *, now_unix_s: int * None = None) -> SwapRecord:
|
annot
|
1377 |
taker_funds_btc
|
ReplaceBinaryOperator_BitOr_Pow
|
async def taker_funds_btc(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> SwapRecord:
|
async def taker_funds_btc(self, terms: NegotiatedTerms, *, now_unix_s: int ** None = None) -> SwapRecord:
|
annot
|
1377 |
taker_funds_btc
|
ReplaceBinaryOperator_BitOr_RShift
|
async def taker_funds_btc(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> SwapRecord:
|
async def taker_funds_btc(self, terms: NegotiatedTerms, *, now_unix_s: int >> None = None) -> SwapRecord:
|
annot
|
1377 |
taker_funds_btc
|
ReplaceBinaryOperator_BitOr_Sub
|
async def taker_funds_btc(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> SwapRecord:
|
async def taker_funds_btc(self, terms: NegotiatedTerms, *, now_unix_s: int - None = None) -> SwapRecord:
|
annot
|
1377 |
taker_funds_btc
|
ReplaceBinaryOperator_Mul_Div
|
async def taker_funds_btc(self, terms: NegotiatedTerms, *, now_unix_s: int | None = None) -> SwapRecord:
|
async def taker_funds_btc(self, terms: NegotiatedTerms, /, now_unix_s: int | None = None) -> SwapRecord:
|
|
1400 |
taker_funds_btc
|
ReplaceComparisonOperator_IsNot_NotEq
|
if self.record.state is not SwapState.NEGOTIATED:
|
if self.record.state != SwapState.NEGOTIATED:
|
|
1461 |
_assert_eth_lock_timing_still_safe
|
ReplaceBinaryOperator_BitOr_Add
|
def _assert_eth_lock_timing_still_safe(self, *, now_unix_s: int | None) -> None:
|
def _assert_eth_lock_timing_still_safe(self, *, now_unix_s: int + None) -> None:
|
annot
|
1461 |
_assert_eth_lock_timing_still_safe
|
ReplaceBinaryOperator_BitOr_BitAnd
|
def _assert_eth_lock_timing_still_safe(self, *, now_unix_s: int | None) -> None:
|
def _assert_eth_lock_timing_still_safe(self, *, now_unix_s: int & None) -> None:
|
annot
|
1461 |
_assert_eth_lock_timing_still_safe
|
ReplaceBinaryOperator_BitOr_BitXor
|
def _assert_eth_lock_timing_still_safe(self, *, now_unix_s: int | None) -> None:
|
def _assert_eth_lock_timing_still_safe(self, *, now_unix_s: int ^ None) -> None:
|
annot
|
1461 |
_assert_eth_lock_timing_still_safe
|
ReplaceBinaryOperator_BitOr_Div
|
def _assert_eth_lock_timing_still_safe(self, *, now_unix_s: int | None) -> None:
|
def _assert_eth_lock_timing_still_safe(self, *, now_unix_s: int / None) -> None:
|
annot
|
1461 |
_assert_eth_lock_timing_still_safe
|
ReplaceBinaryOperator_BitOr_FloorDiv
|
def _assert_eth_lock_timing_still_safe(self, *, now_unix_s: int | None) -> None:
|
def _assert_eth_lock_timing_still_safe(self, *, now_unix_s: int // None) -> None:
|
annot
|
1461 |
_assert_eth_lock_timing_still_safe
|
ReplaceBinaryOperator_BitOr_LShift
|
def _assert_eth_lock_timing_still_safe(self, *, now_unix_s: int | None) -> None:
|
def _assert_eth_lock_timing_still_safe(self, *, now_unix_s: int << None) -> None:
|
annot
|
1461 |
_assert_eth_lock_timing_still_safe
|
ReplaceBinaryOperator_BitOr_Mod
|
def _assert_eth_lock_timing_still_safe(self, *, now_unix_s: int | None) -> None:
|
def _assert_eth_lock_timing_still_safe(self, *, now_unix_s: int % None) -> None:
|
annot
|
1461 |
_assert_eth_lock_timing_still_safe
|
ReplaceBinaryOperator_BitOr_Mul
|
def _assert_eth_lock_timing_still_safe(self, *, now_unix_s: int | None) -> None:
|
def _assert_eth_lock_timing_still_safe(self, *, now_unix_s: int * None) -> None:
|
annot
|
1461 |
_assert_eth_lock_timing_still_safe
|
ReplaceBinaryOperator_BitOr_Pow
|
def _assert_eth_lock_timing_still_safe(self, *, now_unix_s: int | None) -> None:
|
def _assert_eth_lock_timing_still_safe(self, *, now_unix_s: int ** None) -> None:
|
annot
|
1461 |
_assert_eth_lock_timing_still_safe
|
ReplaceBinaryOperator_BitOr_RShift
|
def _assert_eth_lock_timing_still_safe(self, *, now_unix_s: int | None) -> None:
|
def _assert_eth_lock_timing_still_safe(self, *, now_unix_s: int >> None) -> None:
|
annot
|
1461 |
_assert_eth_lock_timing_still_safe
|
ReplaceBinaryOperator_BitOr_Sub
|
def _assert_eth_lock_timing_still_safe(self, *, now_unix_s: int | None) -> None:
|
def _assert_eth_lock_timing_still_safe(self, *, now_unix_s: int - None) -> None:
|
annot
|
1461 |
_assert_eth_lock_timing_still_safe
|
ReplaceBinaryOperator_Mul_Div
|
def _assert_eth_lock_timing_still_safe(self, *, now_unix_s: int | None) -> None:
|
def _assert_eth_lock_timing_still_safe(self, /, now_unix_s: int | None) -> None:
|
|
1490 |
_assert_eth_lock_timing_still_safe
|
NumberReplacer
|
max_covenant_confirm_wait_s=0, # the covenant is CONFIRMED now — no future wait budget
|
max_covenant_confirm_wait_s= 1, # the covenant is CONFIRMED now — no future wait budget
|
|
1493 |
SwapCoordinator
|
RemoveDecorator
|
`` |
`` |
|
1495 |
post_asset_lock_revalidate
|
ReplaceBinaryOperator_BitOr_Add
|
self, observed_covenant_spk: bytes, *, now_unix_s: int | None = None
|
self, observed_covenant_spk: bytes, *, now_unix_s: int + None = None
|
annot
|
1495 |
post_asset_lock_revalidate
|
ReplaceBinaryOperator_BitOr_BitAnd
|
self, observed_covenant_spk: bytes, *, now_unix_s: int | None = None
|
self, observed_covenant_spk: bytes, *, now_unix_s: int & None = None
|
annot
|
1495 |
post_asset_lock_revalidate
|
ReplaceBinaryOperator_BitOr_BitXor
|
self, observed_covenant_spk: bytes, *, now_unix_s: int | None = None
|
self, observed_covenant_spk: bytes, *, now_unix_s: int ^ None = None
|
annot
|
1495 |
post_asset_lock_revalidate
|
ReplaceBinaryOperator_BitOr_Div
|
self, observed_covenant_spk: bytes, *, now_unix_s: int | None = None
|
self, observed_covenant_spk: bytes, *, now_unix_s: int / None = None
|
annot
|
1495 |
post_asset_lock_revalidate
|
ReplaceBinaryOperator_BitOr_FloorDiv
|
self, observed_covenant_spk: bytes, *, now_unix_s: int | None = None
|
self, observed_covenant_spk: bytes, *, now_unix_s: int // None = None
|
annot
|
1495 |
post_asset_lock_revalidate
|
ReplaceBinaryOperator_BitOr_LShift
|
self, observed_covenant_spk: bytes, *, now_unix_s: int | None = None
|
self, observed_covenant_spk: bytes, *, now_unix_s: int << None = None
|
annot
|
1495 |
post_asset_lock_revalidate
|
ReplaceBinaryOperator_BitOr_Mod
|
self, observed_covenant_spk: bytes, *, now_unix_s: int | None = None
|
self, observed_covenant_spk: bytes, *, now_unix_s: int % None = None
|
annot
|
1495 |
post_asset_lock_revalidate
|
ReplaceBinaryOperator_BitOr_Mul
|
self, observed_covenant_spk: bytes, *, now_unix_s: int | None = None
|
self, observed_covenant_spk: bytes, *, now_unix_s: int * None = None
|
annot
|
1495 |
post_asset_lock_revalidate
|
ReplaceBinaryOperator_BitOr_Pow
|
self, observed_covenant_spk: bytes, *, now_unix_s: int | None = None
|
self, observed_covenant_spk: bytes, *, now_unix_s: int ** None = None
|
annot
|
1495 |
post_asset_lock_revalidate
|
ReplaceBinaryOperator_BitOr_RShift
|
self, observed_covenant_spk: bytes, *, now_unix_s: int | None = None
|
self, observed_covenant_spk: bytes, *, now_unix_s: int >> None = None
|
annot
|
1495 |
post_asset_lock_revalidate
|
ReplaceBinaryOperator_BitOr_Sub
|
self, observed_covenant_spk: bytes, *, now_unix_s: int | None = None
|
self, observed_covenant_spk: bytes, *, now_unix_s: int - None = None
|
annot
|
1495 |
post_asset_lock_revalidate
|
ReplaceBinaryOperator_Mul_Div
|
self, observed_covenant_spk: bytes, *, now_unix_s: int | None = None
|
self, observed_covenant_spk: bytes, /, now_unix_s: int | None = None
|
|
1513 |
post_asset_lock_revalidate
|
ReplaceComparisonOperator_IsNot_NotEq
|
if self.record.state is not SwapState.BTC_LOCKED:
|
if self.record.state != SwapState.BTC_LOCKED:
|
|
1520 |
post_asset_lock_revalidate
|
ExceptionReplacer
|
except Exception as exc:
|
except CosmicRayTestingException as exc:
|
|
1525 |
post_asset_lock_revalidate
|
ReplaceTrueWithFalse
|
await self._persist_record(self.record, shield=True)
|
await self._persist_record(self.record, shield=False)
|
|
1530 |
post_asset_lock_revalidate
|
ReplaceComparisonOperator_NotEq_Gt
|
if observed != bytes(expected):
|
if observed > bytes(expected):
|
|
1532 |
post_asset_lock_revalidate
|
ReplaceTrueWithFalse
|
await self._persist_record(self.record, shield=True)
|
await self._persist_record(self.record, shield=False)
|
|
1545 |
post_asset_lock_revalidate
|
ReplaceComparisonOperator_Eq_Is
|
if self.record.terms.counter_chain == "btc":
|
if self.record.terms.counter_chain is "btc":
|
|
1545 |
post_asset_lock_revalidate
|
ReplaceComparisonOperator_Eq_LtE
|
if self.record.terms.counter_chain == "btc":
|
if self.record.terms.counter_chain <= "btc":
|
|
1554 |
post_asset_lock_revalidate
|
ReplaceTrueWithFalse
|
await self._persist_record(self.record, shield=True)
|
await self._persist_record(self.record, shield=False)
|
|
1557 |
_credential_binding_failure
|
ReplaceBinaryOperator_BitOr_Add
|
async def _credential_binding_failure(self, terms: NegotiatedTerms) -> str | None:
|
async def _credential_binding_failure(self, terms: NegotiatedTerms) -> str + None:
|
annot
|
1557 |
_credential_binding_failure
|
ReplaceBinaryOperator_BitOr_BitAnd
|
async def _credential_binding_failure(self, terms: NegotiatedTerms) -> str | None:
|
async def _credential_binding_failure(self, terms: NegotiatedTerms) -> str & None:
|
annot
|
1557 |
_credential_binding_failure
|
ReplaceBinaryOperator_BitOr_BitXor
|
async def _credential_binding_failure(self, terms: NegotiatedTerms) -> str | None:
|
async def _credential_binding_failure(self, terms: NegotiatedTerms) -> str ^ None:
|
annot
|
1557 |
_credential_binding_failure
|
ReplaceBinaryOperator_BitOr_Div
|
async def _credential_binding_failure(self, terms: NegotiatedTerms) -> str | None:
|
async def _credential_binding_failure(self, terms: NegotiatedTerms) -> str / None:
|
annot
|
1557 |
_credential_binding_failure
|
ReplaceBinaryOperator_BitOr_FloorDiv
|
async def _credential_binding_failure(self, terms: NegotiatedTerms) -> str | None:
|
async def _credential_binding_failure(self, terms: NegotiatedTerms) -> str // None:
|
annot
|
1557 |
_credential_binding_failure
|
ReplaceBinaryOperator_BitOr_LShift
|
async def _credential_binding_failure(self, terms: NegotiatedTerms) -> str | None:
|
async def _credential_binding_failure(self, terms: NegotiatedTerms) -> str << None:
|
annot
|
1557 |
_credential_binding_failure
|
ReplaceBinaryOperator_BitOr_Mod
|
async def _credential_binding_failure(self, terms: NegotiatedTerms) -> str | None:
|
async def _credential_binding_failure(self, terms: NegotiatedTerms) -> str % None:
|
annot
|
1557 |
_credential_binding_failure
|
ReplaceBinaryOperator_BitOr_Mul
|
async def _credential_binding_failure(self, terms: NegotiatedTerms) -> str | None:
|
async def _credential_binding_failure(self, terms: NegotiatedTerms) -> str * None:
|
annot
|
1557 |
_credential_binding_failure
|
ReplaceBinaryOperator_BitOr_Pow
|
async def _credential_binding_failure(self, terms: NegotiatedTerms) -> str | None:
|
async def _credential_binding_failure(self, terms: NegotiatedTerms) -> str ** None:
|
annot
|
1557 |
_credential_binding_failure
|
ReplaceBinaryOperator_BitOr_RShift
|
async def _credential_binding_failure(self, terms: NegotiatedTerms) -> str | None:
|
async def _credential_binding_failure(self, terms: NegotiatedTerms) -> str >> None:
|
annot
|
1557 |
_credential_binding_failure
|
ReplaceBinaryOperator_BitOr_Sub
|
async def _credential_binding_failure(self, terms: NegotiatedTerms) -> str | None:
|
async def _credential_binding_failure(self, terms: NegotiatedTerms) -> str - None:
|
annot
|
1588 |
_credential_binding_failure
|
ReplaceComparisonOperator_NotEq_Gt
|
if expected != terms.taker_dest_hash:
|
if expected > terms.taker_dest_hash:
|
|
1624 |
_assert_credential_binding_verified
|
ReplaceTrueWithFalse
|
await self._persist_record(self.record, shield=True)
|
await self._persist_record(self.record, shield=False)
|
|
1640 |
_btc_counter_funding_depth
|
ReplaceBinaryOperator_BitOr_Add
|
def _btc_counter_funding_depth(self) -> int | None:
|
def _btc_counter_funding_depth(self) -> int + None:
|
annot
|
1640 |
_btc_counter_funding_depth
|
ReplaceBinaryOperator_BitOr_BitAnd
|
def _btc_counter_funding_depth(self) -> int | None:
|
def _btc_counter_funding_depth(self) -> int & None:
|
annot
|
1640 |
_btc_counter_funding_depth
|
ReplaceBinaryOperator_BitOr_BitXor
|
def _btc_counter_funding_depth(self) -> int | None:
|
def _btc_counter_funding_depth(self) -> int ^ None:
|
annot
|
1640 |
_btc_counter_funding_depth
|
ReplaceBinaryOperator_BitOr_Div
|
def _btc_counter_funding_depth(self) -> int | None:
|
def _btc_counter_funding_depth(self) -> int / None:
|
annot
|
1640 |
_btc_counter_funding_depth
|
ReplaceBinaryOperator_BitOr_FloorDiv
|
def _btc_counter_funding_depth(self) -> int | None:
|
def _btc_counter_funding_depth(self) -> int // None:
|
annot
|
1640 |
_btc_counter_funding_depth
|
ReplaceBinaryOperator_BitOr_LShift
|
def _btc_counter_funding_depth(self) -> int | None:
|
def _btc_counter_funding_depth(self) -> int << None:
|
annot
|
1640 |
_btc_counter_funding_depth
|
ReplaceBinaryOperator_BitOr_Mod
|
def _btc_counter_funding_depth(self) -> int | None:
|
def _btc_counter_funding_depth(self) -> int % None:
|
annot
|
1640 |
_btc_counter_funding_depth
|
ReplaceBinaryOperator_BitOr_Mul
|
def _btc_counter_funding_depth(self) -> int | None:
|
def _btc_counter_funding_depth(self) -> int * None:
|
annot
|
1640 |
_btc_counter_funding_depth
|
ReplaceBinaryOperator_BitOr_Pow
|
def _btc_counter_funding_depth(self) -> int | None:
|
def _btc_counter_funding_depth(self) -> int ** None:
|
annot
|
1640 |
_btc_counter_funding_depth
|
ReplaceBinaryOperator_BitOr_RShift
|
def _btc_counter_funding_depth(self) -> int | None:
|
def _btc_counter_funding_depth(self) -> int >> None:
|
annot
|
1640 |
_btc_counter_funding_depth
|
ReplaceBinaryOperator_BitOr_Sub
|
def _btc_counter_funding_depth(self) -> int | None:
|
def _btc_counter_funding_depth(self) -> int - None:
|
annot
|
1672 |
_assert_btc_counter_funding_verified
|
ReplaceTrueWithFalse
|
await self._persist_record(self.record, shield=True)
|
await self._persist_record(self.record, shield=False)
|
|
1685 |
_assert_btc_counter_funding_verified
|
ReplaceTrueWithFalse
|
await self._persist_record(self.record, shield=True)
|
await self._persist_record(self.record, shield=False)
|
|
1687 |
_assert_btc_counter_funding_verified
|
ExceptionReplacer
|
except Exception as exc:
|
except CosmicRayTestingException as exc:
|
|
1688 |
_assert_btc_counter_funding_verified
|
ReplaceTrueWithFalse
|
await self._persist_record(self.record, shield=True)
|
await self._persist_record(self.record, shield=False)
|
|
1693 |
_assert_eth_counter_funding_verified
|
ReplaceBinaryOperator_BitOr_Add
|
async def _assert_eth_counter_funding_verified(self, *, now_unix_s: int | None) -> None:
|
async def _assert_eth_counter_funding_verified(self, *, now_unix_s: int + None) -> None:
|
annot
|
1693 |
_assert_eth_counter_funding_verified
|
ReplaceBinaryOperator_BitOr_BitAnd
|
async def _assert_eth_counter_funding_verified(self, *, now_unix_s: int | None) -> None:
|
async def _assert_eth_counter_funding_verified(self, *, now_unix_s: int & None) -> None:
|
annot
|
1693 |
_assert_eth_counter_funding_verified
|
ReplaceBinaryOperator_BitOr_BitXor
|
async def _assert_eth_counter_funding_verified(self, *, now_unix_s: int | None) -> None:
|
async def _assert_eth_counter_funding_verified(self, *, now_unix_s: int ^ None) -> None:
|
annot
|
1693 |
_assert_eth_counter_funding_verified
|
ReplaceBinaryOperator_BitOr_Div
|
async def _assert_eth_counter_funding_verified(self, *, now_unix_s: int | None) -> None:
|
async def _assert_eth_counter_funding_verified(self, *, now_unix_s: int / None) -> None:
|
annot
|
1693 |
_assert_eth_counter_funding_verified
|
ReplaceBinaryOperator_BitOr_FloorDiv
|
async def _assert_eth_counter_funding_verified(self, *, now_unix_s: int | None) -> None:
|
async def _assert_eth_counter_funding_verified(self, *, now_unix_s: int // None) -> None:
|
annot
|
1693 |
_assert_eth_counter_funding_verified
|
ReplaceBinaryOperator_BitOr_LShift
|
async def _assert_eth_counter_funding_verified(self, *, now_unix_s: int | None) -> None:
|
async def _assert_eth_counter_funding_verified(self, *, now_unix_s: int << None) -> None:
|
annot
|
1693 |
_assert_eth_counter_funding_verified
|
ReplaceBinaryOperator_BitOr_Mod
|
async def _assert_eth_counter_funding_verified(self, *, now_unix_s: int | None) -> None:
|
async def _assert_eth_counter_funding_verified(self, *, now_unix_s: int % None) -> None:
|
annot
|
1693 |
_assert_eth_counter_funding_verified
|
ReplaceBinaryOperator_BitOr_Mul
|
async def _assert_eth_counter_funding_verified(self, *, now_unix_s: int | None) -> None:
|
async def _assert_eth_counter_funding_verified(self, *, now_unix_s: int * None) -> None:
|
annot
|
1693 |
_assert_eth_counter_funding_verified
|
ReplaceBinaryOperator_BitOr_Pow
|
async def _assert_eth_counter_funding_verified(self, *, now_unix_s: int | None) -> None:
|
async def _assert_eth_counter_funding_verified(self, *, now_unix_s: int ** None) -> None:
|
annot
|
1693 |
_assert_eth_counter_funding_verified
|
ReplaceBinaryOperator_BitOr_RShift
|
async def _assert_eth_counter_funding_verified(self, *, now_unix_s: int | None) -> None:
|
async def _assert_eth_counter_funding_verified(self, *, now_unix_s: int >> None) -> None:
|
annot
|
1693 |
_assert_eth_counter_funding_verified
|
ReplaceBinaryOperator_BitOr_Sub
|
async def _assert_eth_counter_funding_verified(self, *, now_unix_s: int | None) -> None:
|
async def _assert_eth_counter_funding_verified(self, *, now_unix_s: int - None) -> None:
|
annot
|
1693 |
_assert_eth_counter_funding_verified
|
ReplaceBinaryOperator_Mul_Div
|
async def _assert_eth_counter_funding_verified(self, *, now_unix_s: int | None) -> None:
|
async def _assert_eth_counter_funding_verified(self, /, now_unix_s: int | None) -> None:
|
|
1705 |
_assert_eth_counter_funding_verified
|
ReplaceTrueWithFalse
|
await self._persist_record(self.record, shield=True)
|
await self._persist_record(self.record, shield=False)
|
|
1713 |
_assert_eth_counter_funding_verified
|
ExceptionReplacer
|
except ValidationError:
|
except CosmicRayTestingException:
|
|
1714 |
_assert_eth_counter_funding_verified
|
ReplaceTrueWithFalse
|
await self._persist_record(self.record, shield=True)
|
await self._persist_record(self.record, shield=False)
|
|
1722 |
_assert_eth_counter_funding_verified
|
ReplaceTrueWithFalse
|
await self._persist_record(self.record, shield=True)
|
await self._persist_record(self.record, shield=False)
|
|
1726 |
SwapCoordinator
|
RemoveDecorator
|
`` |
`` |
|
1768 |
maker_verify_counter_funding
|
ReplaceComparisonOperator_Eq_Is
|
if terms.counter_chain == "btc":
|
if terms.counter_chain is "btc":
|
|
1768 |
maker_verify_counter_funding
|
ReplaceComparisonOperator_Eq_LtE
|
if terms.counter_chain == "btc":
|
if terms.counter_chain <= "btc":
|
|
1773 |
maker_verify_counter_funding
|
ReplaceTrueWithFalse
|
await self._persist_record(self.record, shield=True)
|
await self._persist_record(self.record, shield=False)
|
|
1776 |
SwapCoordinator
|
RemoveDecorator
|
`` |
`` |
|
1788 |
maker_claims_btc
|
ReplaceComparisonOperator_IsNot_NotEq
|
if self.record.state is not SwapState.BOTH_LOCKED:
|
if self.record.state != SwapState.BOTH_LOCKED:
|
|
1795 |
maker_claims_btc
|
ReplaceComparisonOperator_NotEq_Gt
|
if hashlib.sha256(raw).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(raw).digest() > self.record.terms.hashlock:
|
|
1795 |
maker_claims_btc
|
ReplaceComparisonOperator_NotEq_Lt
|
if hashlib.sha256(raw).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(raw).digest() < self.record.terms.hashlock:
|
|
1802 |
maker_claims_btc
|
ReplaceTrueWithFalse
|
await self._persist_record(self.record, shield=True)
|
await self._persist_record(self.record, shield=False)
|
|
1821 |
_assert_claim_tx_spends_our_htlc
|
ExceptionReplacer
|
except ValidationError as exc:
|
except CosmicRayTestingException as exc:
|
|
1830 |
SwapCoordinator
|
RemoveDecorator
|
`` |
`` |
|
1851 |
taker_observed_reveal
|
ReplaceComparisonOperator_IsNot_NotEq
|
if self.record.state is not SwapState.BOTH_LOCKED:
|
if self.record.state != SwapState.BOTH_LOCKED:
|
|
1855 |
taker_observed_reveal
|
ReplaceComparisonOperator_Eq_GtE
|
if self.record.terms.counter_chain == "btc":
|
if self.record.terms.counter_chain >= "btc":
|
|
1855 |
taker_observed_reveal
|
ReplaceComparisonOperator_Eq_Is
|
if self.record.terms.counter_chain == "btc":
|
if self.record.terms.counter_chain is "btc":
|
|
1855 |
taker_observed_reveal
|
ReplaceComparisonOperator_Eq_LtE
|
if self.record.terms.counter_chain == "btc":
|
if self.record.terms.counter_chain <= "btc":
|
|
1857 |
taker_observed_reveal
|
ReplaceComparisonOperator_NotEq_Gt
|
if hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(bytes(p)).digest() > self.record.terms.hashlock:
|
|
1857 |
taker_observed_reveal
|
ReplaceComparisonOperator_NotEq_Is
|
if hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(bytes(p)).digest() is self.record.terms.hashlock:
|
|
1857 |
taker_observed_reveal
|
ReplaceComparisonOperator_NotEq_Lt
|
if hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(bytes(p)).digest() < self.record.terms.hashlock:
|
|
1862 |
taker_observed_reveal
|
AddNot
|
if not isinstance(locator, EthHtlcLocator):
|
if not not isinstance(locator, EthHtlcLocator):
|
|
1862 |
taker_observed_reveal
|
ReplaceUnaryOperator_Delete_Not
|
if not isinstance(locator, EthHtlcLocator):
|
if isinstance(locator, EthHtlcLocator):
|
|
1866 |
taker_observed_reveal
|
AddNot
|
if hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
if not hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
|
1866 |
taker_observed_reveal
|
ReplaceComparisonOperator_NotEq_Eq
|
if hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(bytes(p)).digest() == self.record.terms.hashlock:
|
|
1866 |
taker_observed_reveal
|
ReplaceComparisonOperator_NotEq_Gt
|
if hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(bytes(p)).digest() > self.record.terms.hashlock:
|
|
1866 |
taker_observed_reveal
|
ReplaceComparisonOperator_NotEq_GtE
|
if hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(bytes(p)).digest() >= self.record.terms.hashlock:
|
|
1866 |
taker_observed_reveal
|
ReplaceComparisonOperator_NotEq_Is
|
if hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(bytes(p)).digest() is self.record.terms.hashlock:
|
|
1866 |
taker_observed_reveal
|
ReplaceComparisonOperator_NotEq_IsNot
|
if hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(bytes(p)).digest() is not self.record.terms.hashlock:
|
|
1866 |
taker_observed_reveal
|
ReplaceComparisonOperator_NotEq_Lt
|
if hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(bytes(p)).digest() < self.record.terms.hashlock:
|
|
1866 |
taker_observed_reveal
|
ReplaceComparisonOperator_NotEq_LtE
|
if hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(bytes(p)).digest() <= self.record.terms.hashlock:
|
|
1872 |
taker_observed_reveal
|
ReplaceTrueWithFalse
|
await self._persist_record(self.record, shield=True)
|
await self._persist_record(self.record, shield=False)
|
|
1880 |
taker_scrape_and_claim_asset
|
ReplaceBinaryOperator_Mul_Div
|
*,
|
/,
|
|
1916 |
taker_scrape_and_claim_asset
|
ReplaceComparisonOperator_NotEq_Gt
|
if self.record.terms.counter_chain != "btc":
|
if self.record.terms.counter_chain > "btc":
|
|
1916 |
taker_scrape_and_claim_asset
|
ReplaceComparisonOperator_NotEq_IsNot
|
if self.record.terms.counter_chain != "btc":
|
if self.record.terms.counter_chain is not "btc":
|
|
1920 |
taker_scrape_and_claim_asset
|
ReplaceComparisonOperator_IsNot_NotEq
|
if self.record.state is not SwapState.SECRET_REVEALED:
|
if self.record.state != SwapState.SECRET_REVEALED:
|
|
1927 |
taker_scrape_and_claim_asset
|
ReplaceComparisonOperator_NotEq_Gt
|
if hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(bytes(p)).digest() > self.record.terms.hashlock:
|
|
1927 |
taker_scrape_and_claim_asset
|
ReplaceComparisonOperator_NotEq_Is
|
if hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(bytes(p)).digest() is self.record.terms.hashlock:
|
|
1927 |
taker_scrape_and_claim_asset
|
ReplaceComparisonOperator_NotEq_Lt
|
if hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(bytes(p)).digest() < self.record.terms.hashlock:
|
|
1948 |
taker_scrape_and_claim_asset
|
ReplaceComparisonOperator_Is_Eq
|
if finality is ClaimFinality.WAIT:
|
if finality == ClaimFinality.WAIT:
|
|
1955 |
taker_scrape_and_claim_asset
|
ReplaceComparisonOperator_Is_Eq
|
if finality is ClaimFinality.SQUEEZED:
|
if finality == ClaimFinality.SQUEEZED:
|
|
1963 |
taker_scrape_and_claim_asset
|
ReplaceTrueWithFalse
|
await self._persist_record(self.record, shield=True)
|
await self._persist_record(self.record, shield=False)
|
|
1969 |
taker_scrape_and_claim_asset
|
ReplaceTrueWithFalse
|
await self._persist_record(self.record, shield=True)
|
await self._persist_record(self.record, shield=False)
|
|
1973 |
_taker_scrape_and_claim_eth
|
ReplaceBinaryOperator_Mul_Div
|
self, claim_tx_hash, *, now_rxd_height: int, asset_locked_at_height: int
|
self, claim_tx_hash, /, now_rxd_height: int, asset_locked_at_height: int
|
|
1985 |
_taker_scrape_and_claim_eth
|
ReplaceComparisonOperator_IsNot_NotEq
|
if self.record.state is not SwapState.SECRET_REVEALED:
|
if self.record.state != SwapState.SECRET_REVEALED:
|
|
1996 |
_taker_scrape_and_claim_eth
|
ReplaceComparisonOperator_NotEq_Gt
|
if hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(bytes(p)).digest() > self.record.terms.hashlock:
|
|
1996 |
_taker_scrape_and_claim_eth
|
ReplaceComparisonOperator_NotEq_Is
|
if hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(bytes(p)).digest() is self.record.terms.hashlock:
|
|
1996 |
_taker_scrape_and_claim_eth
|
ReplaceComparisonOperator_NotEq_Lt
|
if hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(bytes(p)).digest() < self.record.terms.hashlock:
|
|
2019 |
_taker_scrape_and_claim_eth
|
ReplaceComparisonOperator_Is_Eq
|
if finality is ClaimFinality.WAIT:
|
if finality == ClaimFinality.WAIT:
|
|
2025 |
_taker_scrape_and_claim_eth
|
ReplaceComparisonOperator_Is_Eq
|
if finality is ClaimFinality.SQUEEZED:
|
if finality == ClaimFinality.SQUEEZED:
|
|
2032 |
_taker_scrape_and_claim_eth
|
ReplaceTrueWithFalse
|
await self._persist_record(self.record, shield=True)
|
await self._persist_record(self.record, shield=False)
|
|
2038 |
_taker_scrape_and_claim_eth
|
ReplaceTrueWithFalse
|
await self._persist_record(self.record, shield=True)
|
await self._persist_record(self.record, shield=False)
|
|
2042 |
SwapCoordinator
|
RemoveDecorator
|
`` |
`` |
|
2056 |
taker_claim_asset_from_vulnerable
|
ReplaceComparisonOperator_NotEq_Gt
|
if self.record.terms.counter_chain != "btc":
|
if self.record.terms.counter_chain > "btc":
|
|
2056 |
taker_claim_asset_from_vulnerable
|
ReplaceComparisonOperator_NotEq_IsNot
|
if self.record.terms.counter_chain != "btc":
|
if self.record.terms.counter_chain is not "btc":
|
|
2058 |
taker_claim_asset_from_vulnerable
|
ReplaceComparisonOperator_IsNot_NotEq
|
if self.record.state is not SwapState.ASSET_VULNERABLE:
|
if self.record.state != SwapState.ASSET_VULNERABLE:
|
|
2063 |
taker_claim_asset_from_vulnerable
|
ReplaceComparisonOperator_NotEq_Gt
|
if hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(bytes(p)).digest() > self.record.terms.hashlock:
|
|
2063 |
taker_claim_asset_from_vulnerable
|
ReplaceComparisonOperator_NotEq_Is
|
if hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(bytes(p)).digest() is self.record.terms.hashlock:
|
|
2063 |
taker_claim_asset_from_vulnerable
|
ReplaceComparisonOperator_NotEq_Lt
|
if hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(bytes(p)).digest() < self.record.terms.hashlock:
|
|
2068 |
taker_claim_asset_from_vulnerable
|
ReplaceTrueWithFalse
|
await self._persist_record(self.record, shield=True)
|
await self._persist_record(self.record, shield=False)
|
|
2074 |
_taker_claim_eth_from_vulnerable
|
ReplaceComparisonOperator_IsNot_NotEq
|
if self.record.state is not SwapState.ASSET_VULNERABLE:
|
if self.record.state != SwapState.ASSET_VULNERABLE:
|
|
2083 |
_taker_claim_eth_from_vulnerable
|
ReplaceComparisonOperator_NotEq_Gt
|
if hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(bytes(p)).digest() > self.record.terms.hashlock:
|
|
2083 |
_taker_claim_eth_from_vulnerable
|
ReplaceComparisonOperator_NotEq_Is
|
if hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(bytes(p)).digest() is self.record.terms.hashlock:
|
|
2083 |
_taker_claim_eth_from_vulnerable
|
ReplaceComparisonOperator_NotEq_Lt
|
if hashlib.sha256(bytes(p)).digest() != self.record.terms.hashlock:
|
if hashlib.sha256(bytes(p)).digest() < self.record.terms.hashlock:
|
|
2090 |
_taker_claim_eth_from_vulnerable
|
ReplaceTrueWithFalse
|
await self._persist_record(self.record, shield=True)
|
await self._persist_record(self.record, shield=False)
|
|
2094 |
SwapCoordinator
|
RemoveDecorator
|
`` |
`` |
|
2096 |
maybe_refund_asset_on_maker_stall
|
ReplaceBinaryOperator_Mul_Div
|
self, *, now_block_height: int, asset_locked_at_height: int, maker_has_claimed_btc: bool
|
self, /, now_block_height: int, asset_locked_at_height: int, maker_has_claimed_btc: bool
|
|
2125 |
maybe_refund_asset_on_maker_stall
|
ReplaceComparisonOperator_Is_Eq
|
if self.config.role is SwapRole.TAKER:
|
if self.config.role == SwapRole.TAKER:
|
|
2131 |
maybe_refund_asset_on_maker_stall
|
ReplaceComparisonOperator_IsNot_NotEq
|
if self.record.state is not SwapState.BOTH_LOCKED:
|
if self.record.state != SwapState.BOTH_LOCKED:
|
|
2155 |
maybe_refund_asset_on_maker_stall
|
ReplaceComparisonOperator_Lt_NotEq
|
if now_block_height < maturity_height:
|
if now_block_height != maturity_height:
|
|
2163 |
maybe_refund_asset_on_maker_stall
|
ReplaceBinaryOperator_Sub_Add
|
f"{now_block_height} ({maturity_height - now_block_height} block(s) to go). Refusing to "
|
f"{now_block_height} ({maturity_height + now_block_height} block(s) to go). Refusing to "
|
|
2163 |
maybe_refund_asset_on_maker_stall
|
ReplaceBinaryOperator_Sub_BitAnd
|
f"{now_block_height} ({maturity_height - now_block_height} block(s) to go). Refusing to "
|
f"{now_block_height} ({maturity_height & now_block_height} block(s) to go). Refusing to "
|
|
2163 |
maybe_refund_asset_on_maker_stall
|
ReplaceBinaryOperator_Sub_BitOr
|
f"{now_block_height} ({maturity_height - now_block_height} block(s) to go). Refusing to "
|
f"{now_block_height} ({maturity_height | now_block_height} block(s) to go). Refusing to "
|
|
2163 |
maybe_refund_asset_on_maker_stall
|
ReplaceBinaryOperator_Sub_BitXor
|
f"{now_block_height} ({maturity_height - now_block_height} block(s) to go). Refusing to "
|
f"{now_block_height} ({maturity_height ^ now_block_height} block(s) to go). Refusing to "
|
|
2163 |
maybe_refund_asset_on_maker_stall
|
ReplaceBinaryOperator_Sub_Div
|
f"{now_block_height} ({maturity_height - now_block_height} block(s) to go). Refusing to "
|
f"{now_block_height} ({maturity_height / now_block_height} block(s) to go). Refusing to "
|
|
2163 |
maybe_refund_asset_on_maker_stall
|
ReplaceBinaryOperator_Sub_FloorDiv
|
f"{now_block_height} ({maturity_height - now_block_height} block(s) to go). Refusing to "
|
f"{now_block_height} ({maturity_height // now_block_height} block(s) to go). Refusing to "
|
|
2163 |
maybe_refund_asset_on_maker_stall
|
ReplaceBinaryOperator_Sub_LShift
|
f"{now_block_height} ({maturity_height - now_block_height} block(s) to go). Refusing to "
|
f"{now_block_height} ({maturity_height << now_block_height} block(s) to go). Refusing to "
|
|
2163 |
maybe_refund_asset_on_maker_stall
|
ReplaceBinaryOperator_Sub_Mod
|
f"{now_block_height} ({maturity_height - now_block_height} block(s) to go). Refusing to "
|
f"{now_block_height} ({maturity_height % now_block_height} block(s) to go). Refusing to "
|
|
2163 |
maybe_refund_asset_on_maker_stall
|
ReplaceBinaryOperator_Sub_Mul
|
f"{now_block_height} ({maturity_height - now_block_height} block(s) to go). Refusing to "
|
f"{now_block_height} ({maturity_height * now_block_height} block(s) to go). Refusing to "
|
|
2163 |
maybe_refund_asset_on_maker_stall
|
ReplaceBinaryOperator_Sub_Pow
|
f"{now_block_height} ({maturity_height - now_block_height} block(s) to go). Refusing to "
|
f"{now_block_height} ({maturity_height ** now_block_height} block(s) to go). Refusing to "
|
|
2163 |
maybe_refund_asset_on_maker_stall
|
ReplaceBinaryOperator_Sub_RShift
|
f"{now_block_height} ({maturity_height - now_block_height} block(s) to go). Refusing to "
|
f"{now_block_height} ({maturity_height >> now_block_height} block(s) to go). Refusing to "
|
|
2175 |
maybe_refund_asset_on_maker_stall
|
ReplaceTrueWithFalse
|
await self._persist_record(self.record, shield=True)
|
await self._persist_record(self.record, shield=False)
|
|
2179 |
SwapCoordinator
|
RemoveDecorator
|
`` |
`` |
|
2194 |
taker_refund_btc
|
ReplaceComparisonOperator_Is_Eq
|
if state is SwapState.BTC_LOCKED:
|
if state == SwapState.BTC_LOCKED:
|
|
2198 |
taker_refund_btc
|
ReplaceTrueWithFalse
|
await self._persist_record(self.record, shield=True)
|
await self._persist_record(self.record, shield=False)
|
|
2202 |
SwapCoordinator
|
RemoveDecorator
|
`` |
`` |
|
2210 |
mutual_refund
|
ReplaceComparisonOperator_IsNot_NotEq
|
if self.record.state is not SwapState.BOTH_LOCKED:
|
if self.record.state != SwapState.BOTH_LOCKED:
|
|
2217 |
mutual_refund
|
ReplaceTrueWithFalse
|
await self._persist_record(self.record, shield=True)
|
await self._persist_record(self.record, shield=False)
|
|