Module stellar

Source

Re-exports§

pub use crate::domain::transaction::common::is_final_state;

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.
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

Type Aliases§

DefaultStellarTransaction