OZConstants

public enum OZConstants

Configuration defaults and contract limits for OpenZeppelin smart account operations.

  • Default session expiry in milliseconds (7 days).

    Declaration

    Swift

    public static let defaultSessionExpiryMs: Int64
  • Default HTTP timeout for indexer requests in milliseconds (10 seconds).

    Declaration

    Swift

    public static let defaultIndexerTimeoutMs: Int64
  • Default HTTP timeout for relayer requests in milliseconds (6 minutes).

    Declaration

    Swift

    public static let defaultRelayerTimeoutMs: Int64
  • XLM amount retained in the temporary account as minimum balance reserve when transferring Friendbot funds to a smart account wallet.

    Declaration

    Swift

    public static let friendbotReserveXlm: Int
  • Default timeout for transaction submission and polling in seconds.

    Declaration

    Swift

    public static let defaultTimeoutSeconds: Int
  • Maximum signers per context rule (OpenZeppelin contract limit).

    Declaration

    Swift

    public static let maxSigners: Int
  • Maximum policies per context rule (OpenZeppelin contract limit).

    Declaration

    Swift

    public static let maxPolicies: Int
  • HTTP header name identifying the SDK name in indexer and relayer requests.

    Declaration

    Swift

    public static let clientNameHeader: String
  • HTTP header name identifying the SDK version in indexer and relayer requests.

    Declaration

    Swift

    public static let clientVersionHeader: String
  • SDK identifier value for the iOS Stellar SDK, sent in client identification headers.

    Declaration

    Swift

    public static let clientName: String
  • Maximum size in bytes for indexer HTTP response bodies (1 MiB).

    URLSession.data(for:) buffers the entire response into memory before returning; capping the accepted size protects the SDK process from a compromised remote service returning an arbitrarily large body. The indexer’s largest documented response shape (a contract-details payload with hundreds of context rules) fits comfortably under this limit.

    Declaration

    Swift

    public static let maxIndexerResponseBytes: Int
  • Maximum size in bytes for relayer HTTP response bodies (256 KiB).

    Relayer responses carry at most a transaction hash plus a short status or error message; any larger payload is treated as a protocol failure and surfaces as OZRelayerResponse(success: false, ...).

    Declaration

    Swift

    public static let maxRelayerResponseBytes: Int