Build Information
Failed to build Web3swift, reference 3.3.0 (119d17
), with Swift 6.2 (beta) for Linux on 22 Jun 2025 18:57:27 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
| `- 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 | }
[197/254] 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 | }
[198/254] 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 | }
[199/254] Compiling Web3Core Block.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
350 | }
351 | }
352 | if let res = result, res == errSecSuccess {
| `- error: cannot find 'errSecSuccess' in scope
353 | return data
354 | } else {
[200/254] Compiling Web3Core BlockNumber.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
350 | }
351 | }
352 | if let res = result, res == errSecSuccess {
| `- error: cannot find 'errSecSuccess' in scope
353 | return data
354 | } else {
[201/254] Compiling Web3Core Event+Protocol.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
350 | }
351 | }
352 | if let res = result, res == errSecSuccess {
| `- error: cannot find 'errSecSuccess' in scope
353 | return data
354 | } else {
[202/254] Compiling Web3Core EventLog.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
350 | }
351 | }
352 | if let res = result, res == errSecSuccess {
| `- error: cannot find 'errSecSuccess' in scope
353 | return data
354 | } else {
[203/254] Compiling Web3Core SECP256k1.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
350 | }
351 | }
352 | if let res = result, res == errSecSuccess {
| `- error: cannot find 'errSecSuccess' in scope
353 | return data
354 | } else {
[204/254] Compiling Web3Core TransactionDetails.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
350 | }
351 | }
352 | if let res = result, res == errSecSuccess {
| `- error: cannot find 'errSecSuccess' in scope
353 | return data
354 | } else {
[205/254] Compiling Web3Core TransactionInBlock.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
350 | }
351 | }
352 | if let res = result, res == errSecSuccess {
| `- error: cannot find 'errSecSuccess' in scope
353 | return data
354 | } else {
[206/254] Compiling Web3Core TransactionReceipt.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
350 | }
351 | }
352 | if let res = result, res == errSecSuccess {
| `- error: cannot find 'errSecSuccess' in scope
353 | return data
354 | } else {
[207/254] Compiling Web3Core TxPoolContent.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
350 | }
351 | }
352 | if let res = result, res == errSecSuccess {
| `- error: cannot find 'errSecSuccess' in scope
353 | return data
354 | } else {
[208/254] Compiling Web3Core EIP2930Compatible.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
58 | guard status == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
59 | return nil
60 | }
[209/254] Compiling Web3Core EthereumBloomFilter.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
58 | guard status == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
59 | return nil
60 | }
[210/254] Compiling Web3Core EventfilterParameters.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
58 | guard status == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
59 | return nil
60 | }
[211/254] Compiling Web3Core Policies.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
58 | guard status == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
59 | return nil
60 | }
[212/254] Compiling Web3Core TransactionMetadata.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
58 | guard status == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
59 | return nil
60 | }
[213/254] Compiling Web3Core Array+Extension.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
58 | guard status == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
59 | return nil
60 | }
[214/254] Compiling Web3Core BigUInt+Extension.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
58 | guard status == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
59 | return nil
60 | }
[215/254] Compiling Web3Core CryptoExtension.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
58 | guard status == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
59 | return nil
60 | }
[216/254] Compiling Web3Core Data+Extension.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
58 | guard status == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
59 | return nil
60 | }
[217/254] Compiling Web3Core Async+BackwardCapability.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 [#NominalTypes]
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 [#NominalTypes]
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
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[218/254] Compiling Web3Core HexDecodable+Extensions.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 [#NominalTypes]
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 [#NominalTypes]
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
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[219/254] Compiling Web3Core HexDecodableProtocols.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 [#NominalTypes]
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 [#NominalTypes]
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
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[220/254] Compiling Web3Core IntegerInitableWithRadix.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 [#NominalTypes]
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 [#NominalTypes]
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
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[221/254] 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 [#NominalTypes]
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 [#NominalTypes]
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
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[222/254] 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 [#NominalTypes]
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 [#NominalTypes]
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
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[223/254] 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 [#NominalTypes]
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 [#NominalTypes]
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
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[224/254] 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 [#NominalTypes]
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 [#NominalTypes]
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
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[225/254] 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 [#NominalTypes]
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 [#NominalTypes]
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
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[226/254] 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 [#NominalTypes]
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 [#NominalTypes]
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
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[227/254] Compiling Web3Core TxPoolStatus.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/Web3ProviderProtocol.swift:15:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | var policies: Policies {get set}
14 | var url: URL {get}
15 | var session: URLSession {get}
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | }
17 |
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
[228/254] Compiling Web3Core Web3ProviderProtocol.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/Web3ProviderProtocol.swift:15:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | var policies: Policies {get set}
14 | var url: URL {get}
15 | var session: URLSession {get}
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | }
17 |
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
[229/254] Compiling Web3Core CodableTransaction.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/Web3ProviderProtocol.swift:15:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | var policies: Policies {get set}
14 | var url: URL {get}
15 | var session: URLSession {get}
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | }
17 |
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
[230/254] Compiling Web3Core AbstractEnvelope.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/Web3ProviderProtocol.swift:15:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | var policies: Policies {get set}
14 | var url: URL {get}
15 | var session: URLSession {get}
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | }
17 |
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
[231/254] Compiling Web3Core EIP1559Envelope.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/Web3ProviderProtocol.swift:15:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | var policies: Policies {get set}
14 | var url: URL {get}
15 | var session: URLSession {get}
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | }
17 |
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
[232/254] Compiling Web3Core EIP2718Envelope.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/Web3ProviderProtocol.swift:15:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | var policies: Policies {get set}
14 | var url: URL {get}
15 | var session: URLSession {get}
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | }
17 |
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
[233/254] Compiling Web3Core EIP2930Envelope.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/Web3ProviderProtocol.swift:15:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | var policies: Policies {get set}
14 | var url: URL {get}
15 | var session: URLSession {get}
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | }
17 |
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
[234/254] Compiling Web3Core EnvelopeFactory.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/Web3ProviderProtocol.swift:15:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | var policies: Policies {get set}
14 | var url: URL {get}
15 | var session: URLSession {get}
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | }
17 |
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
[235/254] Compiling Web3Core LegacyEnvelope.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/Web3ProviderProtocol.swift:15:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | var policies: Policies {get set}
14 | var url: URL {get}
15 | var session: URLSession {get}
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | }
17 |
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
[236/254] Compiling Web3Core Decodable+Extensions.swift
[237/254] Compiling Web3Core Dictionary+Extension.swift
[238/254] Compiling Web3Core Encodable+Extensions.swift
[239/254] Compiling Web3Core NSRegularExpression+Extension.swift
[240/254] Compiling Web3Core NativeTypesEncoding+Extension.swift
[241/254] Compiling Web3Core RIPEMD160+StackOveflow.swift
[242/254] Compiling Web3Core String+Extension.swift
[243/254] Compiling Web3Core Utilities.swift
[244/254] Compiling Web3Core Web3Error.swift
[245/254] Compiling Web3Core ContractProtocol.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[246/254] Compiling Web3Core EthereumContract.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[247/254] Compiling Web3Core ABI.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[248/254] Compiling Web3Core ABIDecoding.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[249/254] Compiling Web3Core ABIElements.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[250/254] Compiling Web3Core ABIEncoding.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[251/254] Compiling Web3Core ABIError.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[252/254] Compiling Web3Core ABIParameterTypes.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[253/254] Compiling Web3Core ABIParsing.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[254/254] Compiling Web3Core ABITypeParser.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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. [#DeprecatedDeclaration]
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. [#DeprecatedDeclaration]
| `- 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
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
BUILD FAILURE 6.2 linux