Implements Database, Hosting, and Bridge SDKs for remaining languages: Swift SDKs: - SynorDatabase with KV, Document, Vector, TimeSeries stores - SynorHosting with domain, DNS, deployment, SSL operations - SynorBridge with lock-mint and burn-unlock cross-chain flows C SDKs: - database.h/c - multi-model database client - hosting.h/c - hosting and domain management - bridge.h/c - cross-chain asset transfers C++ SDKs: - database.hpp - modern C++17 with std::future async - hosting.hpp - domain and deployment operations - bridge.hpp - cross-chain bridge with wait operations C# SDKs: - SynorDatabase.cs - async/await with inner store classes - SynorHosting.cs - domain management and analytics - SynorBridge.cs - cross-chain with BridgeException handling Ruby SDKs: - synor_database - Struct-based types with Faraday HTTP - synor_hosting - domain, DNS, SSL, analytics - synor_bridge - lock-mint/burn-unlock with retry logic Phase 3 complete: Database/Hosting/Bridge now available in all 12 languages.
23 lines
530 B
Ruby
23 lines
530 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative "synor_bridge/version"
|
|
require_relative "synor_bridge/types"
|
|
require_relative "synor_bridge/client"
|
|
|
|
module SynorBridge
|
|
class Error < StandardError; end
|
|
class ClientClosedError < Error; end
|
|
class HttpError < Error
|
|
attr_reader :status_code, :code
|
|
|
|
def initialize(message, status_code: 0, code: nil)
|
|
super(message)
|
|
@status_code = status_code
|
|
@code = code
|
|
end
|
|
|
|
def confirmations_pending?
|
|
@code == "CONFIRMATIONS_PENDING"
|
|
end
|
|
end
|
|
end
|