Build Information
Failed to build Web3swift, reference develop (d8cfaf
), with Swift 6.1 for Linux on 30 Apr 2025 05:23:21 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | try await withCheckedThrowingContinuation { continuation in
15 | let dataTask = self.dataTask(with: request) { data, response, error in
[207/241] Compiling Web3Core AbstractKeystore.swift
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/BIP32Keystore.swift:65:19: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
63 | private static let KeystoreParamsBIP32Version = 4
64 |
65 | public private (set) var addressStorage: PathAddressStorage
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
66 |
67 | public convenience init?(_ jsonString: String) {
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
10 | @available(iOS, obsoleted: 15.0, message: "Use the built-in API instead")
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
14 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | try await withCheckedThrowingContinuation { continuation in
15 | let dataTask = self.dataTask(with: request) { data, response, error in
[208/241] Compiling Web3Core BIP32HDNode.swift
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/BIP32Keystore.swift:65:19: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
63 | private static let KeystoreParamsBIP32Version = 4
64 |
65 | public private (set) var addressStorage: PathAddressStorage
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
66 |
67 | public convenience init?(_ jsonString: String) {
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
10 | @available(iOS, obsoleted: 15.0, message: "Use the built-in API instead")
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
14 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | try await withCheckedThrowingContinuation { continuation in
15 | let dataTask = self.dataTask(with: request) { data, response, error in
[209/241] Compiling Web3Core BIP32Keystore.swift
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/BIP32Keystore.swift:65:19: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
63 | private static let KeystoreParamsBIP32Version = 4
64 |
65 | public private (set) var addressStorage: PathAddressStorage
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
66 |
67 | public convenience init?(_ jsonString: String) {
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
10 | @available(iOS, obsoleted: 15.0, message: "Use the built-in API instead")
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
14 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | try await withCheckedThrowingContinuation { continuation in
15 | let dataTask = self.dataTask(with: request) { data, response, error in
[210/241] Compiling Web3Core BIP39+WordLists.swift
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/BIP32Keystore.swift:65:19: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
63 | private static let KeystoreParamsBIP32Version = 4
64 |
65 | public private (set) var addressStorage: PathAddressStorage
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
66 |
67 | public convenience init?(_ jsonString: String) {
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
10 | @available(iOS, obsoleted: 15.0, message: "Use the built-in API instead")
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
14 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | try await withCheckedThrowingContinuation { continuation in
15 | let dataTask = self.dataTask(with: request) { data, response, error in
[211/241] Compiling Web3Core BIP39.swift
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/BIP32Keystore.swift:65:19: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
63 | private static let KeystoreParamsBIP32Version = 4
64 |
65 | public private (set) var addressStorage: PathAddressStorage
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
66 |
67 | public convenience init?(_ jsonString: String) {
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
10 | @available(iOS, obsoleted: 15.0, message: "Use the built-in API instead")
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
14 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | try await withCheckedThrowingContinuation { continuation in
15 | let dataTask = self.dataTask(with: request) { data, response, error in
[212/241] Compiling Web3Core BIP44.swift
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/BIP32Keystore.swift:65:19: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
63 | private static let KeystoreParamsBIP32Version = 4
64 |
65 | public private (set) var addressStorage: PathAddressStorage
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
66 |
67 | public convenience init?(_ jsonString: String) {
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
10 | @available(iOS, obsoleted: 15.0, message: "Use the built-in API instead")
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
14 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | try await withCheckedThrowingContinuation { continuation in
15 | let dataTask = self.dataTask(with: request) { data, response, error in
[213/241] Compiling Web3Core EthereumKeystoreV3.swift
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:28: error: cannot find type 'URLRequest' in scope
58 |
59 | internal protocol URLSessionProxy {
60 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
61 | }
62 |
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | private let successRange = 200..<300
12 |
13 | public init(urlSession: URLSession, apiKey: String) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | self.urlSession = URLSessionProxyImplementation(urlSession: urlSession)
15 | self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | internal protocol URLSessionProxy {
60 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | }
62 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:64:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 |
63 | internal struct URLSessionProxyImplementation: URLSessionProxy {
64 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:28: error: cannot find type 'URLRequest' in scope
64 | let urlSession: URLSession
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
67 | try await urlSession.data(for: request)
68 | }
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | let urlSession: URLSession
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | try await urlSession.data(for: request)
68 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:28:23: error: cannot find 'URLRequest' in scope
26 | throw EtherscanTransactionCheckerError.invalidUrl(url: urlString)
27 | }
28 | let request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
29 | let result = try await urlSession.data(for: request)
30 | if let httpResponse = result.1 as? HTTPURLResponse, !successRange.contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/BIP32Keystore.swift:65:19: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
63 | private static let KeystoreParamsBIP32Version = 4
64 |
65 | public private (set) var addressStorage: PathAddressStorage
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
66 |
67 | public convenience init?(_ jsonString: String) {
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:67:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
67 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
68 | }
69 | }
[214/241] Compiling Web3Core EtherscanTransactionChecker.swift
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:28: error: cannot find type 'URLRequest' in scope
58 |
59 | internal protocol URLSessionProxy {
60 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
61 | }
62 |
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | private let successRange = 200..<300
12 |
13 | public init(urlSession: URLSession, apiKey: String) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | self.urlSession = URLSessionProxyImplementation(urlSession: urlSession)
15 | self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | internal protocol URLSessionProxy {
60 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | }
62 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:64:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 |
63 | internal struct URLSessionProxyImplementation: URLSessionProxy {
64 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:28: error: cannot find type 'URLRequest' in scope
64 | let urlSession: URLSession
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
67 | try await urlSession.data(for: request)
68 | }
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | let urlSession: URLSession
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | try await urlSession.data(for: request)
68 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:28:23: error: cannot find 'URLRequest' in scope
26 | throw EtherscanTransactionCheckerError.invalidUrl(url: urlString)
27 | }
28 | let request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
29 | let result = try await urlSession.data(for: request)
30 | if let httpResponse = result.1 as? HTTPURLResponse, !successRange.contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/BIP32Keystore.swift:65:19: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
63 | private static let KeystoreParamsBIP32Version = 4
64 |
65 | public private (set) var addressStorage: PathAddressStorage
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
66 |
67 | public convenience init?(_ jsonString: String) {
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:67:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
67 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
68 | }
69 | }
[215/241] Compiling Web3Core IBAN.swift
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:28: error: cannot find type 'URLRequest' in scope
58 |
59 | internal protocol URLSessionProxy {
60 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
61 | }
62 |
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | private let successRange = 200..<300
12 |
13 | public init(urlSession: URLSession, apiKey: String) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | self.urlSession = URLSessionProxyImplementation(urlSession: urlSession)
15 | self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | internal protocol URLSessionProxy {
60 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | }
62 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:64:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 |
63 | internal struct URLSessionProxyImplementation: URLSessionProxy {
64 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:28: error: cannot find type 'URLRequest' in scope
64 | let urlSession: URLSession
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
67 | try await urlSession.data(for: request)
68 | }
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | let urlSession: URLSession
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | try await urlSession.data(for: request)
68 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:28:23: error: cannot find 'URLRequest' in scope
26 | throw EtherscanTransactionCheckerError.invalidUrl(url: urlString)
27 | }
28 | let request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
29 | let result = try await urlSession.data(for: request)
30 | if let httpResponse = result.1 as? HTTPURLResponse, !successRange.contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/BIP32Keystore.swift:65:19: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
63 | private static let KeystoreParamsBIP32Version = 4
64 |
65 | public private (set) var addressStorage: PathAddressStorage
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
66 |
67 | public convenience init?(_ jsonString: String) {
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:67:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
67 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
68 | }
69 | }
[216/241] Compiling Web3Core KeystoreManager.swift
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:28: error: cannot find type 'URLRequest' in scope
58 |
59 | internal protocol URLSessionProxy {
60 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
61 | }
62 |
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | private let successRange = 200..<300
12 |
13 | public init(urlSession: URLSession, apiKey: String) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | self.urlSession = URLSessionProxyImplementation(urlSession: urlSession)
15 | self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | internal protocol URLSessionProxy {
60 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | }
62 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:64:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 |
63 | internal struct URLSessionProxyImplementation: URLSessionProxy {
64 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:28: error: cannot find type 'URLRequest' in scope
64 | let urlSession: URLSession
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
67 | try await urlSession.data(for: request)
68 | }
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | let urlSession: URLSession
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | try await urlSession.data(for: request)
68 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:28:23: error: cannot find 'URLRequest' in scope
26 | throw EtherscanTransactionCheckerError.invalidUrl(url: urlString)
27 | }
28 | let request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
29 | let result = try await urlSession.data(for: request)
30 | if let httpResponse = result.1 as? HTTPURLResponse, !successRange.contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/BIP32Keystore.swift:65:19: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
63 | private static let KeystoreParamsBIP32Version = 4
64 |
65 | public private (set) var addressStorage: PathAddressStorage
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
66 |
67 | public convenience init?(_ jsonString: String) {
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:67:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
67 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
68 | }
69 | }
[217/241] Compiling Web3Core KeystoreParams.swift
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:28: error: cannot find type 'URLRequest' in scope
58 |
59 | internal protocol URLSessionProxy {
60 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
61 | }
62 |
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | private let successRange = 200..<300
12 |
13 | public init(urlSession: URLSession, apiKey: String) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | self.urlSession = URLSessionProxyImplementation(urlSession: urlSession)
15 | self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | internal protocol URLSessionProxy {
60 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | }
62 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:64:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 |
63 | internal struct URLSessionProxyImplementation: URLSessionProxy {
64 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:28: error: cannot find type 'URLRequest' in scope
64 | let urlSession: URLSession
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
67 | try await urlSession.data(for: request)
68 | }
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | let urlSession: URLSession
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | try await urlSession.data(for: request)
68 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:28:23: error: cannot find 'URLRequest' in scope
26 | throw EtherscanTransactionCheckerError.invalidUrl(url: urlString)
27 | }
28 | let request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
29 | let result = try await urlSession.data(for: request)
30 | if let httpResponse = result.1 as? HTTPURLResponse, !successRange.contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/BIP32Keystore.swift:65:19: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
63 | private static let KeystoreParamsBIP32Version = 4
64 |
65 | public private (set) var addressStorage: PathAddressStorage
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
66 |
67 | public convenience init?(_ jsonString: String) {
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:67:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
67 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
68 | }
69 | }
[218/241] Compiling Web3Core PathAddressStorage.swift
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:28: error: cannot find type 'URLRequest' in scope
58 |
59 | internal protocol URLSessionProxy {
60 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
61 | }
62 |
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | private let successRange = 200..<300
12 |
13 | public init(urlSession: URLSession, apiKey: String) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | self.urlSession = URLSessionProxyImplementation(urlSession: urlSession)
15 | self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | internal protocol URLSessionProxy {
60 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | }
62 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:64:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 |
63 | internal struct URLSessionProxyImplementation: URLSessionProxy {
64 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:28: error: cannot find type 'URLRequest' in scope
64 | let urlSession: URLSession
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
67 | try await urlSession.data(for: request)
68 | }
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | let urlSession: URLSession
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | try await urlSession.data(for: request)
68 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:28:23: error: cannot find 'URLRequest' in scope
26 | throw EtherscanTransactionCheckerError.invalidUrl(url: urlString)
27 | }
28 | let request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
29 | let result = try await urlSession.data(for: request)
30 | if let httpResponse = result.1 as? HTTPURLResponse, !successRange.contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/BIP32Keystore.swift:65:19: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
63 | private static let KeystoreParamsBIP32Version = 4
64 |
65 | public private (set) var addressStorage: PathAddressStorage
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
66 |
67 | public convenience init?(_ jsonString: String) {
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:67:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
67 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
68 | }
69 | }
[219/241] Compiling Web3Core PlainKeystore.swift
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:28: error: cannot find type 'URLRequest' in scope
58 |
59 | internal protocol URLSessionProxy {
60 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
61 | }
62 |
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | private let successRange = 200..<300
12 |
13 | public init(urlSession: URLSession, apiKey: String) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | self.urlSession = URLSessionProxyImplementation(urlSession: urlSession)
15 | self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | internal protocol URLSessionProxy {
60 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | }
62 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:64:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 |
63 | internal struct URLSessionProxyImplementation: URLSessionProxy {
64 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:28: error: cannot find type 'URLRequest' in scope
64 | let urlSession: URLSession
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
67 | try await urlSession.data(for: request)
68 | }
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | let urlSession: URLSession
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | try await urlSession.data(for: request)
68 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:28:23: error: cannot find 'URLRequest' in scope
26 | throw EtherscanTransactionCheckerError.invalidUrl(url: urlString)
27 | }
28 | let request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
29 | let result = try await urlSession.data(for: request)
30 | if let httpResponse = result.1 as? HTTPURLResponse, !successRange.contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/BIP32Keystore.swift:65:19: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
63 | private static let KeystoreParamsBIP32Version = 4
64 |
65 | public private (set) var addressStorage: PathAddressStorage
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
66 |
67 | public convenience init?(_ jsonString: String) {
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:67:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
67 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
68 | }
69 | }
[220/241] Compiling Web3Core GasOracle.swift
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:28: error: cannot find type 'URLRequest' in scope
58 |
59 | internal protocol URLSessionProxy {
60 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
61 | }
62 |
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | private let successRange = 200..<300
12 |
13 | public init(urlSession: URLSession, apiKey: String) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | self.urlSession = URLSessionProxyImplementation(urlSession: urlSession)
15 | self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | internal protocol URLSessionProxy {
60 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | }
62 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:64:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 |
63 | internal struct URLSessionProxyImplementation: URLSessionProxy {
64 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:28: error: cannot find type 'URLRequest' in scope
64 | let urlSession: URLSession
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
67 | try await urlSession.data(for: request)
68 | }
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | let urlSession: URLSession
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | try await urlSession.data(for: request)
68 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:28:23: error: cannot find 'URLRequest' in scope
26 | throw EtherscanTransactionCheckerError.invalidUrl(url: urlString)
27 | }
28 | let request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
29 | let result = try await urlSession.data(for: request)
30 | if let httpResponse = result.1 as? HTTPURLResponse, !successRange.contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/BIP32Keystore.swift:65:19: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
63 | private static let KeystoreParamsBIP32Version = 4
64 |
65 | public private (set) var addressStorage: PathAddressStorage
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
66 |
67 | public convenience init?(_ jsonString: String) {
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:67:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
67 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
68 | }
69 | }
[221/241] Compiling Web3Core RLP.swift
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:28: error: cannot find type 'URLRequest' in scope
58 |
59 | internal protocol URLSessionProxy {
60 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
61 | }
62 |
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | private let successRange = 200..<300
12 |
13 | public init(urlSession: URLSession, apiKey: String) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | self.urlSession = URLSessionProxyImplementation(urlSession: urlSession)
15 | self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | internal protocol URLSessionProxy {
60 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | }
62 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:64:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 |
63 | internal struct URLSessionProxyImplementation: URLSessionProxy {
64 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:28: error: cannot find type 'URLRequest' in scope
64 | let urlSession: URLSession
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
67 | try await urlSession.data(for: request)
68 | }
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | let urlSession: URLSession
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | try await urlSession.data(for: request)
68 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:28:23: error: cannot find 'URLRequest' in scope
26 | throw EtherscanTransactionCheckerError.invalidUrl(url: urlString)
27 | }
28 | let request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
29 | let result = try await urlSession.data(for: request)
30 | if let httpResponse = result.1 as? HTTPURLResponse, !successRange.contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/BIP32Keystore.swift:65:19: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
63 | private static let KeystoreParamsBIP32Version = 4
64 |
65 | public private (set) var addressStorage: PathAddressStorage
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
66 |
67 | public convenience init?(_ jsonString: String) {
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:67:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
67 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
68 | }
69 | }
[222/241] Compiling Web3Core Base58.swift
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:28: error: cannot find type 'URLRequest' in scope
58 |
59 | internal protocol URLSessionProxy {
60 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
61 | }
62 |
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | private let successRange = 200..<300
12 |
13 | public init(urlSession: URLSession, apiKey: String) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | self.urlSession = URLSessionProxyImplementation(urlSession: urlSession)
15 | self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | internal protocol URLSessionProxy {
60 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | }
62 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:64:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 |
63 | internal struct URLSessionProxyImplementation: URLSessionProxy {
64 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:28: error: cannot find type 'URLRequest' in scope
64 | let urlSession: URLSession
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
67 | try await urlSession.data(for: request)
68 | }
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | let urlSession: URLSession
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | try await urlSession.data(for: request)
68 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:28:23: error: cannot find 'URLRequest' in scope
26 | throw EtherscanTransactionCheckerError.invalidUrl(url: urlString)
27 | }
28 | let request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
29 | let result = try await urlSession.data(for: request)
30 | if let httpResponse = result.1 as? HTTPURLResponse, !successRange.contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/BIP32Keystore.swift:65:19: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
63 | private static let KeystoreParamsBIP32Version = 4
64 |
65 | public private (set) var addressStorage: PathAddressStorage
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
66 |
67 | public convenience init?(_ jsonString: String) {
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:67:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
65 |
66 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
67 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
68 | }
69 | }
[223/241] Compiling Web3Core Decodable+Extensions.swift
[224/241] Compiling Web3Core Dictionary+Extension.swift
[225/241] Compiling Web3Core Encodable+Extensions.swift
[226/241] Compiling Web3Core NSRegularExpression+Extension.swift
[227/241] Compiling Web3Core NativeTypesEncoding+Extension.swift
[228/241] Compiling Web3Core RIPEMD160+StackOveflow.swift
[229/241] Compiling Web3Core String+Extension.swift
[230/241] Compiling Web3Core Utilities.swift
[231/241] Compiling Web3Core Web3Error.swift
[232/241] Compiling Web3Core ContractProtocol.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
380 | public func decodeEthError(_ data: Data) -> [String: Any]? {
381 | guard data.count >= 4,
382 | let err = errors.first(where: { $0.value.methodEncoding == data[0..<4] })?.value else {
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
383 | return nil
384 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:210:16: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
208 | guard parameters.count == inputs.count,
209 | let data = ABIEncoder.encode(types: inputs, values: parameters) else { return nil }
210 | return methodEncoding + data
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
211 | }
212 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:375:68: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
373 | extension ABI.Element.Function {
374 | public func decodeInputData(_ rawData: Data) -> [String: Any]? {
375 | return ABIDecoder.decodeInputData(rawData, methodEncoding: methodEncoding, inputs: inputs)
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
376 | }
377 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:45: warning: expression implicitly coerced from 'Data?' to 'Any'
466 | return Data(v ? [0b1] : [0b0])
467 | } else if let v = value as? Int {
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:45: warning: expression implicitly coerced from 'Data?' to 'Any'
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:45: warning: expression implicitly coerced from 'Data?' to 'Any'
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:45: warning: expression implicitly coerced from 'Data?' to 'Any'
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:45: warning: expression implicitly coerced from 'Data?' to 'Any'
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:45: warning: expression implicitly coerced from 'Data?' to 'Any'
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:45: warning: expression implicitly coerced from 'Data?' to 'Any'
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:45: warning: expression implicitly coerced from 'Data?' to 'Any'
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:45: warning: expression implicitly coerced from 'Data?' to 'Any'
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:45: warning: expression implicitly coerced from 'Data?' to 'Any'
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
487 | } else if let data = ABIEncoder.convertToData(value) {
488 | return data
[233/241] Compiling Web3Core EthereumContract.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
380 | public func decodeEthError(_ data: Data) -> [String: Any]? {
381 | guard data.count >= 4,
382 | let err = errors.first(where: { $0.value.methodEncoding == data[0..<4] })?.value else {
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
383 | return nil
384 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:210:16: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
208 | guard parameters.count == inputs.count,
209 | let data = ABIEncoder.encode(types: inputs, values: parameters) else { return nil }
210 | return methodEncoding + data
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
211 | }
212 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:375:68: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
373 | extension ABI.Element.Function {
374 | public func decodeInputData(_ rawData: Data) -> [String: Any]? {
375 | return ABIDecoder.decodeInputData(rawData, methodEncoding: methodEncoding, inputs: inputs)
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
376 | }
377 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:45: warning: expression implicitly coerced from 'Data?' to 'Any'
466 | return Data(v ? [0b1] : [0b0])
467 | } else if let v = value as? Int {
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:45: warning: expression implicitly coerced from 'Data?' to 'Any'
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:45: warning: expression implicitly coerced from 'Data?' to 'Any'
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:45: warning: expression implicitly coerced from 'Data?' to 'Any'
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:45: warning: expression implicitly coerced from 'Data?' to 'Any'
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:45: warning: expression implicitly coerced from 'Data?' to 'Any'
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:45: warning: expression implicitly coerced from 'Data?' to 'Any'
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:45: warning: expression implicitly coerced from 'Data?' to 'Any'
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:45: warning: expression implicitly coerced from 'Data?' to 'Any'
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:45: warning: expression implicitly coerced from 'Data?' to 'Any'
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
487 | } else if let data = ABIEncoder.convertToData(value) {
488 | return data
[234/241] Compiling Web3Core ABI.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
380 | public func decodeEthError(_ data: Data) -> [String: Any]? {
381 | guard data.count >= 4,
382 | let err = errors.first(where: { $0.value.methodEncoding == data[0..<4] })?.value else {
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
383 | return nil
384 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:210:16: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
208 | guard parameters.count == inputs.count,
209 | let data = ABIEncoder.encode(types: inputs, values: parameters) else { return nil }
210 | return methodEncoding + data
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
211 | }
212 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:375:68: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
373 | extension ABI.Element.Function {
374 | public func decodeInputData(_ rawData: Data) -> [String: Any]? {
375 | return ABIDecoder.decodeInputData(rawData, methodEncoding: methodEncoding, inputs: inputs)
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
376 | }
377 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:45: warning: expression implicitly coerced from 'Data?' to 'Any'
466 | return Data(v ? [0b1] : [0b0])
467 | } else if let v = value as? Int {
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:45: warning: expression implicitly coerced from 'Data?' to 'Any'
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:45: warning: expression implicitly coerced from 'Data?' to 'Any'
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:45: warning: expression implicitly coerced from 'Data?' to 'Any'
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:45: warning: expression implicitly coerced from 'Data?' to 'Any'
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:45: warning: expression implicitly coerced from 'Data?' to 'Any'
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:45: warning: expression implicitly coerced from 'Data?' to 'Any'
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:45: warning: expression implicitly coerced from 'Data?' to 'Any'
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:45: warning: expression implicitly coerced from 'Data?' to 'Any'
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:45: warning: expression implicitly coerced from 'Data?' to 'Any'
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
487 | } else if let data = ABIEncoder.convertToData(value) {
488 | return data
[235/241] Compiling Web3Core ABIDecoding.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
380 | public func decodeEthError(_ data: Data) -> [String: Any]? {
381 | guard data.count >= 4,
382 | let err = errors.first(where: { $0.value.methodEncoding == data[0..<4] })?.value else {
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
383 | return nil
384 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:210:16: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
208 | guard parameters.count == inputs.count,
209 | let data = ABIEncoder.encode(types: inputs, values: parameters) else { return nil }
210 | return methodEncoding + data
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
211 | }
212 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:375:68: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
373 | extension ABI.Element.Function {
374 | public func decodeInputData(_ rawData: Data) -> [String: Any]? {
375 | return ABIDecoder.decodeInputData(rawData, methodEncoding: methodEncoding, inputs: inputs)
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
376 | }
377 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:45: warning: expression implicitly coerced from 'Data?' to 'Any'
466 | return Data(v ? [0b1] : [0b0])
467 | } else if let v = value as? Int {
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:45: warning: expression implicitly coerced from 'Data?' to 'Any'
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:45: warning: expression implicitly coerced from 'Data?' to 'Any'
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:45: warning: expression implicitly coerced from 'Data?' to 'Any'
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:45: warning: expression implicitly coerced from 'Data?' to 'Any'
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:45: warning: expression implicitly coerced from 'Data?' to 'Any'
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:45: warning: expression implicitly coerced from 'Data?' to 'Any'
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:45: warning: expression implicitly coerced from 'Data?' to 'Any'
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:45: warning: expression implicitly coerced from 'Data?' to 'Any'
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:45: warning: expression implicitly coerced from 'Data?' to 'Any'
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
487 | } else if let data = ABIEncoder.convertToData(value) {
488 | return data
[236/241] Compiling Web3Core ABIElements.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
380 | public func decodeEthError(_ data: Data) -> [String: Any]? {
381 | guard data.count >= 4,
382 | let err = errors.first(where: { $0.value.methodEncoding == data[0..<4] })?.value else {
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
383 | return nil
384 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:210:16: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
208 | guard parameters.count == inputs.count,
209 | let data = ABIEncoder.encode(types: inputs, values: parameters) else { return nil }
210 | return methodEncoding + data
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
211 | }
212 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:375:68: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
373 | extension ABI.Element.Function {
374 | public func decodeInputData(_ rawData: Data) -> [String: Any]? {
375 | return ABIDecoder.decodeInputData(rawData, methodEncoding: methodEncoding, inputs: inputs)
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
376 | }
377 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:45: warning: expression implicitly coerced from 'Data?' to 'Any'
466 | return Data(v ? [0b1] : [0b0])
467 | } else if let v = value as? Int {
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:45: warning: expression implicitly coerced from 'Data?' to 'Any'
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:45: warning: expression implicitly coerced from 'Data?' to 'Any'
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:45: warning: expression implicitly coerced from 'Data?' to 'Any'
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:45: warning: expression implicitly coerced from 'Data?' to 'Any'
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:45: warning: expression implicitly coerced from 'Data?' to 'Any'
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:45: warning: expression implicitly coerced from 'Data?' to 'Any'
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:45: warning: expression implicitly coerced from 'Data?' to 'Any'
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:45: warning: expression implicitly coerced from 'Data?' to 'Any'
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:45: warning: expression implicitly coerced from 'Data?' to 'Any'
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
487 | } else if let data = ABIEncoder.convertToData(value) {
488 | return data
[237/241] Compiling Web3Core ABIEncoding.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
380 | public func decodeEthError(_ data: Data) -> [String: Any]? {
381 | guard data.count >= 4,
382 | let err = errors.first(where: { $0.value.methodEncoding == data[0..<4] })?.value else {
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
383 | return nil
384 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:210:16: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
208 | guard parameters.count == inputs.count,
209 | let data = ABIEncoder.encode(types: inputs, values: parameters) else { return nil }
210 | return methodEncoding + data
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
211 | }
212 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:375:68: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
373 | extension ABI.Element.Function {
374 | public func decodeInputData(_ rawData: Data) -> [String: Any]? {
375 | return ABIDecoder.decodeInputData(rawData, methodEncoding: methodEncoding, inputs: inputs)
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
376 | }
377 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:45: warning: expression implicitly coerced from 'Data?' to 'Any'
466 | return Data(v ? [0b1] : [0b0])
467 | } else if let v = value as? Int {
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:45: warning: expression implicitly coerced from 'Data?' to 'Any'
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:45: warning: expression implicitly coerced from 'Data?' to 'Any'
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:45: warning: expression implicitly coerced from 'Data?' to 'Any'
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:45: warning: expression implicitly coerced from 'Data?' to 'Any'
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:45: warning: expression implicitly coerced from 'Data?' to 'Any'
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:45: warning: expression implicitly coerced from 'Data?' to 'Any'
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:45: warning: expression implicitly coerced from 'Data?' to 'Any'
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:45: warning: expression implicitly coerced from 'Data?' to 'Any'
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:45: warning: expression implicitly coerced from 'Data?' to 'Any'
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
487 | } else if let data = ABIEncoder.convertToData(value) {
488 | return data
[238/241] Compiling Web3Core ABIError.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
380 | public func decodeEthError(_ data: Data) -> [String: Any]? {
381 | guard data.count >= 4,
382 | let err = errors.first(where: { $0.value.methodEncoding == data[0..<4] })?.value else {
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
383 | return nil
384 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:210:16: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
208 | guard parameters.count == inputs.count,
209 | let data = ABIEncoder.encode(types: inputs, values: parameters) else { return nil }
210 | return methodEncoding + data
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
211 | }
212 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:375:68: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
373 | extension ABI.Element.Function {
374 | public func decodeInputData(_ rawData: Data) -> [String: Any]? {
375 | return ABIDecoder.decodeInputData(rawData, methodEncoding: methodEncoding, inputs: inputs)
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
376 | }
377 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:45: warning: expression implicitly coerced from 'Data?' to 'Any'
466 | return Data(v ? [0b1] : [0b0])
467 | } else if let v = value as? Int {
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:45: warning: expression implicitly coerced from 'Data?' to 'Any'
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:45: warning: expression implicitly coerced from 'Data?' to 'Any'
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:45: warning: expression implicitly coerced from 'Data?' to 'Any'
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:45: warning: expression implicitly coerced from 'Data?' to 'Any'
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:45: warning: expression implicitly coerced from 'Data?' to 'Any'
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:45: warning: expression implicitly coerced from 'Data?' to 'Any'
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:45: warning: expression implicitly coerced from 'Data?' to 'Any'
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:45: warning: expression implicitly coerced from 'Data?' to 'Any'
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:45: warning: expression implicitly coerced from 'Data?' to 'Any'
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
487 | } else if let data = ABIEncoder.convertToData(value) {
488 | return data
[239/241] Compiling Web3Core ABIParameterTypes.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
380 | public func decodeEthError(_ data: Data) -> [String: Any]? {
381 | guard data.count >= 4,
382 | let err = errors.first(where: { $0.value.methodEncoding == data[0..<4] })?.value else {
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
383 | return nil
384 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:210:16: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
208 | guard parameters.count == inputs.count,
209 | let data = ABIEncoder.encode(types: inputs, values: parameters) else { return nil }
210 | return methodEncoding + data
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
211 | }
212 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:375:68: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
373 | extension ABI.Element.Function {
374 | public func decodeInputData(_ rawData: Data) -> [String: Any]? {
375 | return ABIDecoder.decodeInputData(rawData, methodEncoding: methodEncoding, inputs: inputs)
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
376 | }
377 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:45: warning: expression implicitly coerced from 'Data?' to 'Any'
466 | return Data(v ? [0b1] : [0b0])
467 | } else if let v = value as? Int {
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:45: warning: expression implicitly coerced from 'Data?' to 'Any'
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:45: warning: expression implicitly coerced from 'Data?' to 'Any'
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:45: warning: expression implicitly coerced from 'Data?' to 'Any'
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:45: warning: expression implicitly coerced from 'Data?' to 'Any'
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:45: warning: expression implicitly coerced from 'Data?' to 'Any'
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:45: warning: expression implicitly coerced from 'Data?' to 'Any'
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:45: warning: expression implicitly coerced from 'Data?' to 'Any'
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:45: warning: expression implicitly coerced from 'Data?' to 'Any'
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:45: warning: expression implicitly coerced from 'Data?' to 'Any'
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
487 | } else if let data = ABIEncoder.convertToData(value) {
488 | return data
[240/241] Compiling Web3Core ABIParsing.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
380 | public func decodeEthError(_ data: Data) -> [String: Any]? {
381 | guard data.count >= 4,
382 | let err = errors.first(where: { $0.value.methodEncoding == data[0..<4] })?.value else {
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
383 | return nil
384 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:210:16: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
208 | guard parameters.count == inputs.count,
209 | let data = ABIEncoder.encode(types: inputs, values: parameters) else { return nil }
210 | return methodEncoding + data
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
211 | }
212 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:375:68: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
373 | extension ABI.Element.Function {
374 | public func decodeInputData(_ rawData: Data) -> [String: Any]? {
375 | return ABIDecoder.decodeInputData(rawData, methodEncoding: methodEncoding, inputs: inputs)
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
376 | }
377 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:45: warning: expression implicitly coerced from 'Data?' to 'Any'
466 | return Data(v ? [0b1] : [0b0])
467 | } else if let v = value as? Int {
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:45: warning: expression implicitly coerced from 'Data?' to 'Any'
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:45: warning: expression implicitly coerced from 'Data?' to 'Any'
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:45: warning: expression implicitly coerced from 'Data?' to 'Any'
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:45: warning: expression implicitly coerced from 'Data?' to 'Any'
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:45: warning: expression implicitly coerced from 'Data?' to 'Any'
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:45: warning: expression implicitly coerced from 'Data?' to 'Any'
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:45: warning: expression implicitly coerced from 'Data?' to 'Any'
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:45: warning: expression implicitly coerced from 'Data?' to 'Any'
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:45: warning: expression implicitly coerced from 'Data?' to 'Any'
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
487 | } else if let data = ABIEncoder.convertToData(value) {
488 | return data
[241/241] Compiling Web3Core ABITypeParser.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
380 | public func decodeEthError(_ data: Data) -> [String: Any]? {
381 | guard data.count >= 4,
382 | let err = errors.first(where: { $0.value.methodEncoding == data[0..<4] })?.value else {
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
383 | return nil
384 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:210:16: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
208 | guard parameters.count == inputs.count,
209 | let data = ABIEncoder.encode(types: inputs, values: parameters) else { return nil }
210 | return methodEncoding + data
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
211 | }
212 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:375:68: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
373 | extension ABI.Element.Function {
374 | public func decodeInputData(_ rawData: Data) -> [String: Any]? {
375 | return ABIDecoder.decodeInputData(rawData, methodEncoding: methodEncoding, inputs: inputs)
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
| `- note: use 'selectorEncoded' instead
376 | }
377 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:45: warning: expression implicitly coerced from 'Data?' to 'Any'
466 | return Data(v ? [0b1] : [0b0])
467 | } else if let v = value as? Int {
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:45: warning: expression implicitly coerced from 'Data?' to 'Any'
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:45: warning: expression implicitly coerced from 'Data?' to 'Any'
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:45: warning: expression implicitly coerced from 'Data?' to 'Any'
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:45: warning: expression implicitly coerced from 'Data?' to 'Any'
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:45: warning: expression implicitly coerced from 'Data?' to 'Any'
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:45: warning: expression implicitly coerced from 'Data?' to 'Any'
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:45: warning: expression implicitly coerced from 'Data?' to 'Any'
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:45: warning: expression implicitly coerced from 'Data?' to 'Any'
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:45: warning: expression implicitly coerced from 'Data?' to 'Any'
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
487 | } else if let data = ABIEncoder.convertToData(value) {
488 | return data
BUILD FAILURE 6.1 linux