Re-exports§
pub use crate::domain::transaction::common::is_final_state;
Modules§
- validation
- Validation logic for Stellar transactions
Structs§
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.
- convert_
v0_ to_ v1_ transaction - Convert a V0 transaction to V1 format for signing. This is needed because the signature payload for V0 transactions uses V1 format internally.
- create_
signature_ payload - Create a signature payload for the given envelope type
- create_
transaction_ signature_ payload - Create signature payload for a transaction directly (for operations-based signing)
- 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