Expand description
§Domain Module
Core domain logic for the relayer service, implementing:
- Transaction processing
- Relayer management
- Network-specific implementations
Modules§
- evm
- jupiter_
swap - JupiterSwapDex
- jupiter_
ultra - JupiterUltraDex
- solana
- stellar
- xdr_
utils - XDR utility functions for Stellar transaction processing.
Structs§
- Balance
Response - EvmRelayer
- EvmRelayer
Transaction - EvmTransaction
Validator - NoopDex
- Relayer
Factory - Relayer
Transaction Factory - A factory for creating relayer transactions.
- Sign
Data Request - Sign
Data Response Evm - Sign
Data Response Solana - Sign
Transaction External Response Stellar - Sign
Transaction Request Stellar - Sign
Transaction Response Evm - Sign
Transaction Response Stellar - Sign
Typed Data Request - Sign
XdrTransaction Response Stellar - Solana
Relayer - Solana
Relayer Transaction - Solana
RpcHandler - Solana
RpcMethods Impl - Solana
Token Program - Implementation of the Solana token program functionality.
- Solana
Transaction Validator - Stellar
Relayer - Stellar
Relayer Dependencies - Dependencies container for
StellarRelayer
construction. - Stellar
Relayer Transaction - Swap
Params - Parameters for a swap operation
- Swap
Result - Result of a swap operation
- Token
Account - Represents a Solana token account with its key properties.
Enums§
- EvmTransaction
Validation Error - Network
Dex - Network
Relayer - Network
Transaction - An enum representing a transaction for different network types.
- Sign
Data Response - Sign
Transaction External Response - Sign
Transaction Request - Sign
Transaction Response - Solana
RpcError - Solana
Transaction Validation Error - Token
Error - Error types that can occur during token operations.
- Token
Instruction - Represents different types of token instructions.
Traits§
- DexStrategy
- Trait defining DEX swap functionality
- Relayer
- The
Relayer
trait defines the core functionality required for a relayer in the system. Implementors of this trait are responsible for handling transaction requests, managing balances, and interacting with the network. - Relayer
Factory Trait - Relayer
Transaction Factory Trait - A trait for creating network transactions.
- Solana
Relayer DexTrait - Solana Relayer Dex Trait Subset of methods for Solana relayer
- Solana
Relayer Trait - Solana Relayer Trait Subset of methods for Solana relayer
- Solana
RpcMethods - Transaction
- A trait that defines the operations for handling transactions across different networks.
Functions§
- attach_
signatures_ to_ envelope - Attach signatures to a transaction envelope This function handles all envelope types (V0, V1, and FeeBump)
- build_
fee_ bump_ envelope - Build a fee-bump transaction envelope
- calculate_
transaction_ hash - Calculate the hash of a transaction envelope
- create_
error_ response - Creates an error response following the JSON-RPC 2.0 specification.
- create_
network_ dex_ generic - create_
solana_ relayer - Function to create a Solana relayer instance
- create_
success_ response - Creates a success response following the JSON-RPC 2.0 specification.
- extract_
inner_ transaction_ hash - Extract the inner transaction hash from a fee-bump envelope
- extract_
operations - Extract operations from a transaction envelope
- extract_
source_ account - Extract the source account from a transaction envelope
- get_
network_ relayer - Retrieves a network relayer by its ID, constructing it using the relayer and signer models.
- get_
network_ relayer_ by_ model - Constructs a network relayer using a given relayer model.
- get_
relayer_ by_ id - Retrieves a relayer by its ID from the repository.
- get_
relayer_ transaction - Creates a relayer network transaction instance based on the relayer ID.
- get_
relayer_ transaction_ by_ model - Creates a relayer network transaction using a relayer model.
- get_
transaction_ by_ id - Retrieves a transaction by its ID.
- is_
fee_ bump - Check if a transaction envelope is a fee-bump transaction
- is_
signed - Check if a transaction envelope is signed
- map_
provider_ error - Maps provider errors to appropriate JSON-RPC error codes and messages.
- muxed_
account_ to_ string - Convert a MuxedAccount to a string representation
- parse_
transaction_ xdr - Parse a transaction XDR string into a TransactionEnvelope
- solana_
not_ supported_ relayer - Returns an error indicating that the endpoint is not supported for Solana relayers.
- solana_
not_ supported_ transaction - Returns an error indicating that Solana relayers are not supported.
- string_
to_ muxed_ account - Convert a string address to a MuxedAccount
- update_
xdr_ fee - Update the fee in an XDR envelope
- update_
xdr_ sequence - Update the sequence number in an XDR envelope
- validate_
source_ account - Validate that the source account of a transaction matches the expected account
- xdr_
needs_ simulation - Check if a transaction envelope contains operations that require simulation