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 -
Interval in milliseconds between Soroban RPC polls while waiting for a freshly created ledger entry to become visible to the RPC. Shared by the funding-account visibility wait in
OZTransactionOperations/waitForAccountVisibleToRpc(accountId:pollIntervalMs:timeoutSeconds:)and the deployed-contract visibility wait inOZTransactionOperations/waitForContractVisibleToRpc(contractId:pollIntervalMs:timeoutSeconds:).Declaration
Swift
public static let rpcVisibilityPollIntervalMs: Int -
Overall timeout in seconds for a freshly created ledger entry to become visible to the Soroban RPC. A funded account or a deployed contract confirms on Horizon within milliseconds, but the Soroban RPC may lag by one or more ledger closes; polling absorbs that variable propagation delay rather than assuming a single fixed wait. Shared by
OZTransactionOperations/waitForAccountVisibleToRpc(accountId:pollIntervalMs:timeoutSeconds:)andOZTransactionOperations/waitForContractVisibleToRpc(contractId:pollIntervalMs:timeoutSeconds:).Declaration
Swift
public static let rpcVisibilityTimeoutSeconds: 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 -
Maximum context rule name length in UTF-8 bytes (OpenZeppelin contract limit).
Declaration
Swift
public static let maxNameSize: Int -
Maximum external signer key data length in bytes (OpenZeppelin contract limit).
Declaration
Swift
public static let maxExternalKeySize: 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
View on GitHub
Install in Dash