mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
51 lines
1.6 KiB
Swift
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)
|
|
}
|
|
}
|
|
|