Module retryables

Module retryables 

Source

Structs§

CancelLookup
A metered cancel result: its outcome plus the extra storage-read gas.
Retryable
A single retryable ticket.
RetryableLookup
A metered lookup result: its outcome plus the extra storage-read gas the open consumed consulting the lifetime-window slot past the raw timeout.
RetryableState
Manages the collection of retryable tickets.

Enums§

CancelOutcome
Outcome of a metered cancel: cleared (with the calldata size that was cleared), a miss, or an unauthorised caller.
LookupOutcome
Outcome of a metered retryable lookup that may miss.
RetryableError
Errors raised by the retryable ticket subsystem.

Constants§

BENEFICIARY_OFFSET
CALLDATA_KEY
CALLVALUE_OFFSET
FROM_OFFSET
NUM_TRIES_OFFSET
RETRYABLE_LIFETIME_SECONDS
RETRYABLE_REAP_PRICE
TIMEOUT_OFFSET
TIMEOUT_QUEUE_KEY
TIMEOUT_WINDOWS_LEFT_OFFSET
TO_OFFSET

Functions§

initialize_retryable_state
open_retryable_state
retryable_escrow_address
Computes the escrow address for a retryable ticket.
retryable_submission_fee
Submission fee for a retryable ticket: (1400 + 6 * len) * l1_base_fee, computed with big-integer arithmetic to prevent overflow.