Module models

Source
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::*;
pub use health::*;

Modules§

common_codes
health
Health check models and response types.
openzeppelin_codes
relayer
Relayer domain model and business logic.
signer
Core signer domain model and business logic.
transaction
types

Structs§

ApiKeyRepoModel
ApiKeyRequest
ApiKeyResponse
ApiResponse
AppState
Represents the application state, holding various repositories and services required for the application’s operation.
EncodedSerializedTransaction
EvmNetwork
JsonRpcError
JSON-RPC 2.0 Error structure.
JsonRpcRequest
JSON-RPC 2.0 Request structure.
JsonRpcResponse
JSON-RPC 2.0 Response structure.
NetworkRepoModel
Network repository model representing a network configuration stored in the repository.
NetworkResponse
Network response model for API endpoints.
Notification
Notification model used by both config file and API
NotificationConfig
Configuration file representation of a notification
NotificationConfigs
Collection of notification configurations
NotificationCreateRequest
Request structure for creating a new notification
NotificationRepoModel
NotificationResponse
Response structure for notification API endpoints
NotificationUpdateRequest
Request structure for updating an existing notification
OpenZeppelinErrorCodes
Custom OpenZeppelin error codes for extended JSON-RPC functionality.
PaginationMeta
PaginationQuery
PluginCallRequest
PluginMetadata
PluginModel
RelayerDisabledPayload
RelayerEnabledPayload
RpcErrorCodes
JSON-RPC 2.0 error codes as defined in the specification.
SecretString
SolanaDexPayload
SolanaFeeEstimateRequestParams
SolanaFeeEstimateResult
SolanaGetFeaturesEnabledRequestParams
SolanaGetFeaturesEnabledResult
SolanaGetSupportedTokensItem
SolanaGetSupportedTokensRequestParams
SolanaGetSupportedTokensResult
SolanaNetwork
SolanaPrepareTransactionRequestParams
SolanaPrepareTransactionResult
SolanaSignAndSendTransactionRequestParams
SolanaSignAndSendTransactionResult
SolanaSignTransactionRequestParams
SolanaSignTransactionResult
SolanaTransferTransactionRequestParams
SolanaTransferTransactionResult
StellarDexPayload
StellarFeeEstimateRequestParams
StellarFeeEstimateResult
StellarNetwork
StellarPrepareTransactionRequestParams
StellarPrepareTransactionResult
TransactionFailurePayload
UpdateNetworkRequest
Request structure for updating a network configuration. Currently supports updating RPC URLs only. Can be extended to support other fields.
UpdatePluginRequest
Request model for updating an existing plugin. All fields are optional to allow partial updates. Note: id and path are not updateable after creation.
WebhookNotification
WebhookResponse

Enums§

Address
AddressError
ApiError
EvmRpcRequest
EvmRpcResult
JsonRpcId
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.
NetworkConfigData
Network configuration data enum that can hold different network types.
NetworkError
NetworkRpcRequest
NetworkRpcResult
NotificationType
Notification type enum used by both config file and API
NotificationValidationError
Common validation errors for notifications
PlainOrEnvValue
PlainOrEnvValueError
PluginValidationError
Validation errors for plugin updates
RelayerError
RepositoryError
RpcUrlEntry
Schema-only type representing a flexible RPC URL entry. Used for OpenAPI documentation to show that rpc_urls can accept either strings or RpcConfig objects.
SignerError
SignerFactoryError
SolanaEncodingError
SolanaRpcMethod
SolanaRpcRequest
SolanaRpcResult
SolanaWebhookRpcPayload
StellarProviderError
StellarRpcMethod
Stellar RPC method enum
StellarRpcRequest
StellarRpcResult
StellarValidationError
Specific errors that can occur during Stellar transaction validation
TransactionError
WebhookPayload

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§

BlockResponse
DefaultAppState
ThinDataAppState
type alias for the app state wrapped in a ThinData to avoid clippy warnings
TransactionReceipt