Module stellar

Source

Modules§

validation
Validation logic for Stellar transactions

Structs§

StellarRelayerTransaction

Functions§

claim
Try to claim the lane for relayer_id:tx_id. Returns true if it becomes owner. Returns true if it already owns the lane. Returns false if another tx owns it.
fetch_next_sequence_from_chain
Fetches the current sequence number from the blockchain and calculates the next usable sequence. This is a shared helper that can be used by both stellar_relayer and stellar_transaction.
free
Free the lane if we still own it.
i64_from_u64
is_bad_sequence_error
Detects if an error is due to a bad sequence number. Returns true if the error message contains indicators of sequence number mismatch.
needs_simulation
Returns true if any operation needs simulation (contract invocation, creation, or wasm upload).
next_sequence_u64
pass_to
Pass the lane from current_tx_id to next_tx_id

Type Aliases§

DefaultStellarTransaction