Module constants

Source
Expand description

This module contains all the constant values used in the system

Structs§

ID_REGEX

Constants§

ARBITRUM_BASED_TAG
ARBITRUM_GAS_LIMIT
ARBITRUM_TIME_TO_RESUBMIT
Time to resubmit for Arbitrum networks
AUTHORIZATION_HEADER_NAME
AUTHORIZATION_HEADER_VALUE_PREFIX
COMPLEX_GAS_LIMIT
DEFAULT_CONCURRENCY
DEFAULT_CONCURRENCY_HEALTH_CHECK
DEFAULT_CONCURRENCY_NOTIFICATION
DEFAULT_CONCURRENCY_SOLANA_SWAP
DEFAULT_CONCURRENCY_STATUS_CHECKER
DEFAULT_CONCURRENCY_STATUS_CHECKER_EVM
DEFAULT_CONCURRENCY_STATUS_CHECKER_STELLAR
DEFAULT_CONCURRENCY_TRANSACTION_REQUEST
DEFAULT_CONCURRENCY_TRANSACTION_SENDER
DEFAULT_CONVERSION_SLIPPAGE_PERCENTAGE
DEFAULT_EVM_EIP1559_ENABLED
Default EIP-1559 pricing enabled
DEFAULT_EVM_GAS_LIMIT_ESTIMATION
Default gas limit estimation enabled
DEFAULT_EVM_GAS_PRICE_CAP
Default gas price cap: 100 gwei in wei
DEFAULT_EVM_MIN_BALANCE
DEFAULT_GAS_LIMIT
DEFAULT_LOG_DIR
Default log directory for file logging
DEFAULT_LOG_FORMAT
Default log format when not specified
DEFAULT_LOG_LEVEL
Default log level when not specified
DEFAULT_LOG_MODE
Default log mode when not specified
DEFAULT_MAX_LOG_FILE_SIZE
Default maximum log file size in bytes (1GB)
DEFAULT_PLUGIN_TIMEOUT_SECONDS
DEFAULT_RPC_WEIGHT
DEFAULT_SOLANA_MAX_TX_DATA_SIZE
Default maximum transaction data size for Solana
DEFAULT_SOLANA_MIN_BALANCE
DEFAULT_STELLAR_CONCURRENT_TRANSACTIONS
Default concurrent transactions enabled setting for Stellar
DEFAULT_STELLAR_MIN_BALANCE
DEFAULT_TRANSACTION_SPEED
DEFAULT_TX_VALID_TIMESPAN
DOCKER_LOG_DIR
Default log directory when running in Docker
ERC20_TRANSFER_GAS_LIMIT
ERC721_TRANSFER_GAS_LIMIT
EVM_MIN_AGE_FOR_HASH_RECOVERY_MINUTES
Minimum age before attempting hash recovery for transactions (in minutes)
EVM_MIN_AGE_FOR_RESUBMIT_SECONDS
Minimum age of transaction before allowing resubmission and timeout checks (in seconds) Transactions younger than this will still get status updates from blockchain, but resubmission logic and timeout checks are deferred to prevent premature actions.
EVM_MIN_HASHES_FOR_RECOVERY
Minimum number of hashes required before attempting hash recovery
EVM_PENDING_RECOVERY_TRIGGER_SECONDS
Trigger recovery for stuck Pending transactions (in seconds)
EVM_PREPARE_TIMEOUT_MINUTES
Timeout for preparation phase: Pending → Sent (in minutes) Increased from 1 to 2 minutes to provide wider recovery window
EVM_RESEND_TIMEOUT_SECONDS
Timeout for resend phase: Sent → Submitted (in seconds)
EVM_SMALLEST_UNIT_NAME
EVM_STATUS_CHECK_INITIAL_DELAY_SECONDS
Initial delay before first status check (in seconds)
EVM_SUBMIT_TIMEOUT_MINUTES
Timeout for submission phase: Sent → Submitted (in minutes)
FINAL_TRANSACTION_STATUSES
Transaction statuses that are considered final states. These states indicate that a transaction has reached its terminal state and will not be processed further.
GAS_LIMIT_BUFFER_MULTIPLIER
Gas limit buffer multiplier for automatic gas limit estimation, 10% increase
GAS_PRICE_CACHE_REFRESH_TIMEOUT_SECS
Gas price cache refresh timeout in seconds (5 minutes) Used to cleanup stuck refresh operations that may have failed to complete
GAS_TX_CREATE_CONTRACT
GAS_TX_DATA_NONZERO
GAS_TX_DATA_ZERO
HISTORICAL_BLOCKS
Number of historical blocks to fetch for fee history analysis
JUPITER_BASE_API_URL
LACKS_MEMPOOL_TAGS
LOG_FILE_NAME
Log file name
MAXIMUM_NOOP_RETRY_ATTEMPTS
MAXIMUM_SOLANA_TX_ATTEMPTS
Maximum number of transaction resubmission attempts before marking as Failed Each attempt creates a new signature (when blockhash expires and tx is resubmitted) Similar to EVM’s MAXIMUM_TX_ATTEMPTS but tailored for Solana’s resubmission behavior
MAXIMUM_TX_ATTEMPTS
MAX_SOLANA_TX_DATA_SIZE
MINIMUM_SECRET_VALUE_LENGTH
MIN_BUMP_FACTOR
Minimum gas price bump factor for transaction replacements (10% increase)
NATIVE_SOL
NO_MEMPOOL_TAG
Network tag constants for EVM networks
OPTIMISM_BASED_TAG
OPTIMISM_GAS_PRICE_ORACLE_ADDRESS
OPTIMISM_TAG
@deprecated Use OPTIMISM_BASED_TAG instead. Will be removed in a future version.
POLYGON_ZKEVM_TAG
PUBLIC_ENDPOINTS
REQUEST_MAX_ACCOUNTS_PER_INSTRUCTION
Maximum number of accounts allowed per instruction in a request
REQUEST_MAX_INSTRUCTIONS
Maximum number of instructions allowed in a transaction request
REQUEST_MAX_INSTRUCTION_DATA_SIZE
Maximum instruction data size in bytes allowed in a request
REQUEST_MAX_TOTAL_ACCOUNTS
Maximum total unique accounts allowed in a transaction request
RETRY_JITTER_PERCENT
The percentage (0.0 to 1.0) for jitter in retry delays
ROLLUP_TAG
SOLANA_DECIMALS
SOLANA_DEFAULT_TX_VALID_TIMESPAN
Default transaction valid timespan for Solana when no explicit valid_until is provided (in milliseconds) Set to 30 minutes to balance between:
SOLANA_MIN_AGE_FOR_RESUBMIT_CHECK_SECONDS
Minimum age before checking for resubmit/expiration (in seconds) If transaction is younger than this, we don’t check blockhash expiration yet
SOLANA_PENDING_RECOVERY_TRIGGER_SECONDS
Minimum age before triggering Pending status recovery (in seconds) Only schedule a recovery job if Pending transaction exceeds this age
SOLANA_PENDING_TIMEOUT_MINUTES
Timeout for Pending status: transaction preparation phase (in minutes) If a transaction stays in Pending for longer than this, mark as Failed
SOLANA_SENT_TIMEOUT_MINUTES
Timeout for Sent status: waiting for submission (in minutes) If a transaction stays in Sent for longer than this, mark as Failed
SOLANA_SMALLEST_UNIT_NAME
SOLANA_STATUS_CHECK_INITIAL_DELAY_SECONDS
Initial delay before first status check (in seconds)
STELLAR_BAD_SEQUENCE_RETRY_DELAY_SECONDS
Default delay (in seconds) for retrying transaction after bad sequence error
STELLAR_DEFAULT_MAX_FEE
Default maximum fee for fee-bump transactions (0.1 XLM = 1,000,000 stroops)
STELLAR_DEFAULT_TRANSACTION_FEE
STELLAR_SMALLEST_UNIT_NAME
STELLAR_STATUS_CHECK_INITIAL_DELAY_SECONDS
Initial delay before first status check (in seconds) Set to 2s for faster detection of transaction state changes
SYSTEM_PROGRAM_ID
WORKER_DEFAULT_MAXIMUM_RETRIES
WORKER_NOTIFICATION_SENDER_RETRIES
WORKER_RELAYER_HEALTH_CHECK_RETRIES
WORKER_SOLANA_TOKEN_SWAP_REQUEST_RETRIES
WORKER_TRANSACTION_CANCEL_RETRIES
WORKER_TRANSACTION_CLEANUP_RETRIES
WORKER_TRANSACTION_REQUEST_RETRIES
WORKER_TRANSACTION_RESEND_RETRIES
WORKER_TRANSACTION_RESUBMIT_RETRIES
WORKER_TRANSACTION_STATUS_CHECKER_RETRIES
WORKER_TRANSACTION_SUBMIT_RETRIES
WRAPPED_SOL_MINT
ZERO_ADDRESS

Functions§

get_evm_min_age_for_hash_recovery
Get minimum age for hash recovery duration
get_evm_pending_recovery_trigger_timeout
Get pending recovery trigger duration
get_evm_prepare_timeout
Get preparation timeout duration
get_evm_resend_timeout
Get resend timeout duration
get_evm_status_check_initial_delay
Get status check initial delay duration
get_evm_submit_timeout
Get submission timeout duration
get_solana_status_check_initial_delay
Get status check initial delay duration
get_stellar_status_check_initial_delay
Get status check initial delay duration