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

51 lines
1.6 KiB
Swift

//
// SafeTxIn.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct SafeTxIn: Sendable, Codable, ParameterConvertible, Hashable {
/** ChainID is the EVM chain the Safe transaction is bound to. 0 uses the wallet's own chain, or the Hanzo L1 (36963) when it is chain-agnostic. */
public var chainId: Int64?
/** Data is the call data, hex-encoded. */
public var data: String?
/** Nonce is the Safe's transaction nonce. */
public var nonce: Int64?
/** To is the transaction's target address. */
public var to: String?
/** Value is the native-token amount to send, as a decimal string in wei. */
public var value: String?
public init(chainId: Int64? = nil, data: String? = nil, nonce: Int64? = nil, to: String? = nil, value: String? = nil) {
self.chainId = chainId
self.data = data
self.nonce = nonce
self.to = to
self.value = value
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case chainId
case data
case nonce
case to
case value
}
// 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(data, forKey: .data)
try container.encodeIfPresent(nonce, forKey: .nonce)
try container.encodeIfPresent(to, forKey: .to)
try container.encodeIfPresent(value, forKey: .value)
}
}