Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
The projection these were generated from predated the compute migration, so
they described /v1/visor — which the API serves at zero paths now.

No /v1/visor path survives here.
2026-09-05 18:55:38 -07:00

44 lines
1.2 KiB
Swift

//
// Chain.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Chain: Sendable, Codable, ParameterConvertible, Hashable {
/** ChainID is the EIP-155 id, so a caller can check it matches the wallet they are about to sign with. */
public var chainId: Int64?
/** ID is the URL name: the value of :chain. */
public var id: String?
/** Name is for humans. */
public var name: String?
public init(chainId: Int64? = nil, id: String? = nil, name: String? = nil) {
self.chainId = chainId
self.id = id
self.name = name
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case chainId
case id
case name
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(chainId, forKey: .chainId)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(name, forKey: .name)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension Chain: Identifiable {}