Module request

Source
Expand description

Request models for relayer API endpoints.

This module provides request structures used by relayer CRUD API endpoints, including:

  • Create Requests: New relayer creation
  • Update Requests: Partial relayer updates
  • Validation: Input validation and error handling
  • Conversions: Mapping between API requests and domain models

These models handle API-specific concerns like optional fields for updates while delegating business logic validation to the domain model.

Structs§

CreateRelayerRequest
Request model for creating a new relayer
UpdateRelayerRequest
UpdateRelayerRequestRaw
Request model for updating an existing relayer All fields are optional to allow partial updates Note: network and signer_id are not updateable after creation

Enums§

CreateRelayerPolicyRequest
Policy types for create requests - deserialized based on network_type from parent request

Functions§

deserialize_policy_for_network_type
Utility function to deserialize policy JSON for a specific network type Used for update requests where we know the network type ahead of time