Expand description
§Models Module
Contains core data structures and type definitions for the relayer service.
Re-exports§
pub use relayer::RelayerStellarSwapConfig;pub use relayer::SolanaAllowedTokensPolicy;pub use relayer::SolanaFeePaymentStrategy;pub use relayer::SolanaSwapStrategy;pub use relayer::StellarAllowedTokensPolicy;pub use relayer::StellarFeePaymentStrategy;pub use relayer::StellarSwapStrategy;pub use transaction::*;pub use relayer::*;pub use signer::*;pub use types::*;
Modules§
- common_
codes - openzeppelin_
codes - relayer
- Relayer domain model and business logic.
- signer
- Core signer domain model and business logic.
- transaction
- types
Structs§
- ApiKey
Repo Model - ApiKey
Request - ApiKey
Response - ApiResponse
- AppState
- Represents the application state, holding various repositories and services required for the application’s operation.
- Encoded
Serialized Transaction - EvmNetwork
- Json
RpcError - JSON-RPC 2.0 Error structure.
- Json
RpcRequest - JSON-RPC 2.0 Request structure.
- Json
RpcResponse - JSON-RPC 2.0 Response structure.
- Network
Repo Model - Network repository model representing a network configuration stored in the repository.
- Notification
- Notification model used by both config file and API
- Notification
Config - Configuration file representation of a notification
- Notification
Configs - Collection of notification configurations
- Notification
Create Request - Request structure for creating a new notification
- Notification
Repo Model - Notification
Response - Response structure for notification API endpoints
- Notification
Update Request - Request structure for updating an existing notification
- Open
Zeppelin Error Codes - Custom OpenZeppelin error codes for extended JSON-RPC functionality.
- Pagination
Meta - Pagination
Query - Plugin
Call Request - Plugin
Metadata - Plugin
Model - Relayer
Disabled Payload - Relayer
Enabled Payload - RpcError
Codes - JSON-RPC 2.0 error codes as defined in the specification.
- Secret
String - Solana
DexPayload - Solana
FeeEstimate Request Params - Solana
FeeEstimate Result - Solana
GetFeatures Enabled Request Params - Solana
GetFeatures Enabled Result - Solana
GetSupported Tokens Item - Solana
GetSupported Tokens Request Params - Solana
GetSupported Tokens Result - Solana
Network - Solana
Prepare Transaction Request Params - Solana
Prepare Transaction Result - Solana
Sign AndSend Transaction Request Params - Solana
Sign AndSend Transaction Result - Solana
Sign Transaction Request Params - Solana
Sign Transaction Result - Solana
Transfer Transaction Request Params - Solana
Transfer Transaction Result - Stellar
DexPayload - Stellar
FeeEstimate Request Params - Stellar
FeeEstimate Result - Stellar
Network - Stellar
Prepare Transaction Request Params - Stellar
Prepare Transaction Result - Transaction
Failure Payload - Webhook
Notification - Webhook
Response
Enums§
- Address
- Address
Error - ApiError
- EvmRpc
Request - EvmRpc
Result - Json
RpcId - Represents a JSON-RPC 2.0 ID value.
According to the spec, the ID can be a String or Number.
When used in
Option<JsonRpcId>: Some(id) = actual ID, None = explicit null. - Network
Config Data - Network configuration data enum that can hold different network types.
- Network
Error - Network
RpcRequest - Network
RpcResult - Notification
Type - Notification type enum used by both config file and API
- Notification
Validation Error - Common validation errors for notifications
- Plain
OrEnv Value - Plain
OrEnv Value Error - Relayer
Error - Repository
Error - Signer
Error - Signer
Factory Error - Solana
Encoding Error - Solana
RpcMethod - Solana
RpcRequest - Solana
RpcResult - Solana
Webhook RpcPayload - Stellar
Provider Error - Stellar
RpcMethod - Stellar RPC method enum
- Stellar
RpcRequest - Stellar
RpcResult - Stellar
Validation Error - Specific errors that can occur during Stellar transaction validation
- Transaction
Error - Webhook
Payload
Functions§
- convert_
to_ internal_ rpc_ request - Converts a raw JSON-RPC request to the internal NetworkRpcRequest format.
- produce_
relayer_ disabled_ payload - produce_
relayer_ enabled_ payload - produce_
solana_ dex_ webhook_ payload - produce_
solana_ rpc_ webhook_ payload - Produces a notification payload for a Solana RPC webhook event
- produce_
stellar_ dex_ webhook_ payload - produce_
transaction_ update_ notification_ payload - validate_
plain_ or_ env_ value
Type Aliases§
- Block
Response - Default
AppState - Thin
Data AppState - type alias for the app state wrapped in a ThinData to avoid clippy warnings
- Transaction
Receipt