Build Information
Failed to build Web3swift with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
let err = errors.first(where: { $0.value.methodEncoding == data[0..<4] })?.value else {
^
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: note: use 'selectorEncoded' instead
let err = errors.first(where: { $0.value.methodEncoding == data[0..<4] })?.value else {
^~~~~~~~~~~~~~
selectorEncoded
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:210:16: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
return methodEncoding + data
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:210:16: note: use 'selectorEncoded' instead
return methodEncoding + data
^~~~~~~~~~~~~~
selectorEncoded
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:375:68: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
return ABIDecoder.decodeInputData(rawData, methodEncoding: methodEncoding, inputs: inputs)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:375:68: note: use 'selectorEncoded' instead
return ABIDecoder.decodeInputData(rawData, methodEncoding: methodEncoding, inputs: inputs)
^~~~~~~~~~~~~~
selectorEncoded
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:85: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:85: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:85: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:65: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:65: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:65: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:84: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:84: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:84: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:84: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:84: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:84: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:84: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:84: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:84: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:86: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:86: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:86: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:84: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:84: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:84: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:85: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:85: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:85: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:85: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:85: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:85: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:85: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:85: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:85: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
[204/213] Compiling Web3Core Sequence+ABIExtension.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: note: use 'selector' instead
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
errors[error.methodString.addHexPrefix().lowercased()] = error
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: note: use 'selector' instead
errors[error.methodString.addHexPrefix().lowercased()] = error
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
, parameters: <#[any Encodable]#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: 'send(_:parameters:with:)' declared here
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
as! Web3Provider
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: in call to function 'send(_:parameters:with:)'
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await session.data(for: uRLRequest)
~~~~~~~ ^~~~
[205/213] Compiling Web3Core EthereumAddress.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: note: use 'selector' instead
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
errors[error.methodString.addHexPrefix().lowercased()] = error
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: note: use 'selector' instead
errors[error.methodString.addHexPrefix().lowercased()] = error
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
, parameters: <#[any Encodable]#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: 'send(_:parameters:with:)' declared here
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
as! Web3Provider
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: in call to function 'send(_:parameters:with:)'
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await session.data(for: uRLRequest)
~~~~~~~ ^~~~
[206/213] Compiling Web3Core APIRequest+ComputedProperties.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: note: use 'selector' instead
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
errors[error.methodString.addHexPrefix().lowercased()] = error
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: note: use 'selector' instead
errors[error.methodString.addHexPrefix().lowercased()] = error
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
, parameters: <#[any Encodable]#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: 'send(_:parameters:with:)' declared here
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
as! Web3Provider
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: in call to function 'send(_:parameters:with:)'
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await session.data(for: uRLRequest)
~~~~~~~ ^~~~
[207/213] Compiling Web3Core APIRequest+Methods.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: note: use 'selector' instead
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
errors[error.methodString.addHexPrefix().lowercased()] = error
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: note: use 'selector' instead
errors[error.methodString.addHexPrefix().lowercased()] = error
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
, parameters: <#[any Encodable]#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: 'send(_:parameters:with:)' declared here
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
as! Web3Provider
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: in call to function 'send(_:parameters:with:)'
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await session.data(for: uRLRequest)
~~~~~~~ ^~~~
[208/213] Compiling Web3Core APIRequest+UtilityTypes.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: note: use 'selector' instead
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
errors[error.methodString.addHexPrefix().lowercased()] = error
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: note: use 'selector' instead
errors[error.methodString.addHexPrefix().lowercased()] = error
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
, parameters: <#[any Encodable]#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: 'send(_:parameters:with:)' declared here
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
as! Web3Provider
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: in call to function 'send(_:parameters:with:)'
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await session.data(for: uRLRequest)
~~~~~~~ ^~~~
[209/213] Compiling Web3Core APIRequest.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: note: use 'selector' instead
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
errors[error.methodString.addHexPrefix().lowercased()] = error
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: note: use 'selector' instead
errors[error.methodString.addHexPrefix().lowercased()] = error
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
, parameters: <#[any Encodable]#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: 'send(_:parameters:with:)' declared here
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
as! Web3Provider
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: in call to function 'send(_:parameters:with:)'
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await session.data(for: uRLRequest)
~~~~~~~ ^~~~
[210/213] Compiling Web3Core APIRequestParameterType.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: note: use 'selector' instead
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
errors[error.methodString.addHexPrefix().lowercased()] = error
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: note: use 'selector' instead
errors[error.methodString.addHexPrefix().lowercased()] = error
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
, parameters: <#[any Encodable]#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: 'send(_:parameters:with:)' declared here
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
as! Web3Provider
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: in call to function 'send(_:parameters:with:)'
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await session.data(for: uRLRequest)
~~~~~~~ ^~~~
[211/213] Compiling Web3Core RequestParameter+Encodable.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: note: use 'selector' instead
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
errors[error.methodString.addHexPrefix().lowercased()] = error
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: note: use 'selector' instead
errors[error.methodString.addHexPrefix().lowercased()] = error
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
, parameters: <#[any Encodable]#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: 'send(_:parameters:with:)' declared here
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
as! Web3Provider
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: in call to function 'send(_:parameters:with:)'
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await session.data(for: uRLRequest)
~~~~~~~ ^~~~
[212/213] Compiling Web3Core RequestParameter+RawRepresentable.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: note: use 'selector' instead
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
errors[error.methodString.addHexPrefix().lowercased()] = error
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: note: use 'selector' instead
errors[error.methodString.addHexPrefix().lowercased()] = error
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
, parameters: <#[any Encodable]#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: 'send(_:parameters:with:)' declared here
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
as! Web3Provider
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: in call to function 'send(_:parameters:with:)'
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await session.data(for: uRLRequest)
~~~~~~~ ^~~~
[213/213] Compiling Web3Core RequestParameter.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: note: use 'selector' instead
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
errors[error.methodString.addHexPrefix().lowercased()] = error
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: note: use 'selector' instead
errors[error.methodString.addHexPrefix().lowercased()] = error
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
, parameters: <#[any Encodable]#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: 'send(_:parameters:with:)' declared here
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
as! Web3Provider
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: in call to function 'send(_:parameters:with:)'
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await session.data(for: uRLRequest)
~~~~~~~ ^~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/52] Compiling Web3Core TransactionInBlock.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.
var session: URLSession {get}
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
[3/52] Compiling Web3Core TransactionReceipt.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.
var session: URLSession {get}
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
[4/52] Compiling Web3Core TxPoolContent.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.
var session: URLSession {get}
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
[5/52] 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.
var session: URLSession {get}
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
[6/52] 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.
var session: URLSession {get}
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
[7/52] 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.
var session: URLSession {get}
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
[8/52] 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.
var session: URLSession {get}
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
[9/59] Compiling Web3Core RequestParameter+RawRepresentable.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:13:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
^~~~~~~~~~
[10/59] Compiling Web3Core RequestParameter.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:13:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
^~~~~~~~~~
[11/59] Compiling Web3Core Async+BackwardCapability.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:13:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
^~~~~~~~~~
[12/59] Compiling Web3Core HexDecodable+Extensions.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:13:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
^~~~~~~~~~
[13/59] Compiling Web3Core HexDecodableProtocols.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:13:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
^~~~~~~~~~
[14/59] Compiling Web3Core IntegerInitableWithRadix.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:13:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
^~~~~~~~~~
[15/59] Compiling Web3Core AbstractKeystore.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:13:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
^~~~~~~~~~
[16/59] Compiling Web3Core Base58.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
if let res = result, res == errSecSuccess {
^~~~~~~~~~~~~
[17/59] Compiling Web3Core Block.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
if let res = result, res == errSecSuccess {
^~~~~~~~~~~~~
[18/59] Compiling Web3Core BlockNumber.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
if let res = result, res == errSecSuccess {
^~~~~~~~~~~~~
[19/59] Compiling Web3Core Event+Protocol.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
if let res = result, res == errSecSuccess {
^~~~~~~~~~~~~
[20/59] Compiling Web3Core EventLog.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
if let res = result, res == errSecSuccess {
^~~~~~~~~~~~~
[21/59] Compiling Web3Core SECP256k1.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
if let res = result, res == errSecSuccess {
^~~~~~~~~~~~~
[22/59] Compiling Web3Core TransactionDetails.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
if let res = result, res == errSecSuccess {
^~~~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[23/59] Emitting module Web3Core
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~
/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.
public init(urlSession: URLSession, apiKey: String) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
func data(for request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~
/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.
func data(for request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
var session: URLSession {get}
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
[24/59] Compiling Web3Core EventfilterParameters.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
guard status == errSecSuccess else {
^~~~~~~~~~~~~
[25/59] Compiling Web3Core Policies.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
guard status == errSecSuccess else {
^~~~~~~~~~~~~
[26/59] Compiling Web3Core TransactionMetadata.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
guard status == errSecSuccess else {
^~~~~~~~~~~~~
[27/59] Compiling Web3Core Array+Extension.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
guard status == errSecSuccess else {
^~~~~~~~~~~~~
[28/59] Compiling Web3Core BigUInt+Extension.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
guard status == errSecSuccess else {
^~~~~~~~~~~~~
[29/59] Compiling Web3Core CryptoExtension.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
guard status == errSecSuccess else {
^~~~~~~~~~~~~
[30/59] Compiling Web3Core Data+Extension.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
guard status == errSecSuccess else {
^~~~~~~~~~~~~
[31/59] Compiling Web3Core IBAN.swift
[32/59] Compiling Web3Core KeystoreManager.swift
[33/59] Compiling Web3Core KeystoreParams.swift
[34/59] Compiling Web3Core PathAddressStorage.swift
[35/59] Compiling Web3Core PlainKeystore.swift
[36/59] Compiling Web3Core GasOracle.swift
[37/59] Compiling Web3Core RLP.swift
[38/67] Compiling Web3Core EIP1559Envelope.swift
[39/67] Compiling Web3Core EIP2718Envelope.swift
[40/67] Compiling Web3Core EIP2930Envelope.swift
[41/67] Compiling Web3Core EnvelopeFactory.swift
[42/67] Compiling Web3Core LegacyEnvelope.swift
[43/67] Compiling Web3Core EIP2930Compatible.swift
[44/67] Compiling Web3Core EthereumBloomFilter.swift
[45/67] Compiling Web3Core Sequence+ABIExtension.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: note: use 'selector' instead
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
errors[error.methodString.addHexPrefix().lowercased()] = error
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: note: use 'selector' instead
errors[error.methodString.addHexPrefix().lowercased()] = error
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
, parameters: <#[any Encodable]#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: 'send(_:parameters:with:)' declared here
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
as! Web3Provider
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: in call to function 'send(_:parameters:with:)'
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await session.data(for: uRLRequest)
~~~~~~~ ^~~~
[46/67] Compiling Web3Core EthereumAddress.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: note: use 'selector' instead
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
errors[error.methodString.addHexPrefix().lowercased()] = error
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: note: use 'selector' instead
errors[error.methodString.addHexPrefix().lowercased()] = error
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
, parameters: <#[any Encodable]#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: 'send(_:parameters:with:)' declared here
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
as! Web3Provider
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: in call to function 'send(_:parameters:with:)'
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await session.data(for: uRLRequest)
~~~~~~~ ^~~~
[47/67] Compiling Web3Core APIRequest+ComputedProperties.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: note: use 'selector' instead
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
errors[error.methodString.addHexPrefix().lowercased()] = error
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: note: use 'selector' instead
errors[error.methodString.addHexPrefix().lowercased()] = error
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
, parameters: <#[any Encodable]#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: 'send(_:parameters:with:)' declared here
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
as! Web3Provider
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: in call to function 'send(_:parameters:with:)'
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await session.data(for: uRLRequest)
~~~~~~~ ^~~~
[48/67] Compiling Web3Core APIRequest+Methods.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: note: use 'selector' instead
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
errors[error.methodString.addHexPrefix().lowercased()] = error
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: note: use 'selector' instead
errors[error.methodString.addHexPrefix().lowercased()] = error
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
, parameters: <#[any Encodable]#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: 'send(_:parameters:with:)' declared here
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
as! Web3Provider
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: in call to function 'send(_:parameters:with:)'
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await session.data(for: uRLRequest)
~~~~~~~ ^~~~
[49/67] Compiling Web3Core APIRequest+UtilityTypes.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: note: use 'selector' instead
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
errors[error.methodString.addHexPrefix().lowercased()] = error
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: note: use 'selector' instead
errors[error.methodString.addHexPrefix().lowercased()] = error
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
, parameters: <#[any Encodable]#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: 'send(_:parameters:with:)' declared here
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
as! Web3Provider
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: in call to function 'send(_:parameters:with:)'
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await session.data(for: uRLRequest)
~~~~~~~ ^~~~
[50/67] Compiling Web3Core APIRequest.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: note: use 'selector' instead
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
errors[error.methodString.addHexPrefix().lowercased()] = error
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: note: use 'selector' instead
errors[error.methodString.addHexPrefix().lowercased()] = error
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
, parameters: <#[any Encodable]#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: 'send(_:parameters:with:)' declared here
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
as! Web3Provider
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: in call to function 'send(_:parameters:with:)'
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await session.data(for: uRLRequest)
~~~~~~~ ^~~~
[51/67] Compiling Web3Core APIRequestParameterType.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: note: use 'selector' instead
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
errors[error.methodString.addHexPrefix().lowercased()] = error
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: note: use 'selector' instead
errors[error.methodString.addHexPrefix().lowercased()] = error
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
, parameters: <#[any Encodable]#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: 'send(_:parameters:with:)' declared here
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
as! Web3Provider
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: in call to function 'send(_:parameters:with:)'
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await session.data(for: uRLRequest)
~~~~~~~ ^~~~
[52/67] Compiling Web3Core RequestParameter+Encodable.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: note: use 'selector' instead
appendFunction(function.methodString.addHexPrefix().lowercased(), function)
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead.
errors[error.methodString.addHexPrefix().lowercased()] = error
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: note: use 'selector' instead
errors[error.methodString.addHexPrefix().lowercased()] = error
^~~~~~~~~~~~
selector
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
, parameters: <#[any Encodable]#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: 'send(_:parameters:with:)' declared here
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
as! Web3Provider
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
data = try await send(uRLRequest: uRLRequest, with: provider.session)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:91:24: note: in call to function 'send(_:parameters:with:)'
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await session.data(for: uRLRequest)
~~~~~~~ ^~~~
[53/67] Compiling Web3Core BIP32HDNode.swift
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~
/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.
public init(urlSession: URLSession, apiKey: String) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
func data(for request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~
/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.
func data(for request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:28:23: error: cannot find 'URLRequest' in scope
let request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:67:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
try await urlSession.data(for: request)
~~~~~~~~~~ ^~~~
[54/67] Compiling Web3Core BIP32Keystore.swift
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~
/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.
public init(urlSession: URLSession, apiKey: String) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
func data(for request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~
/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.
func data(for request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:28:23: error: cannot find 'URLRequest' in scope
let request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:67:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
try await urlSession.data(for: request)
~~~~~~~~~~ ^~~~
[55/67] Compiling Web3Core BIP39+WordLists.swift
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~
/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.
public init(urlSession: URLSession, apiKey: String) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
func data(for request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~
/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.
func data(for request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:28:23: error: cannot find 'URLRequest' in scope
let request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:67:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
try await urlSession.data(for: request)
~~~~~~~~~~ ^~~~
[56/67] Compiling Web3Core BIP39.swift
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~
/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.
public init(urlSession: URLSession, apiKey: String) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
func data(for request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~
/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.
func data(for request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:28:23: error: cannot find 'URLRequest' in scope
let request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:67:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
try await urlSession.data(for: request)
~~~~~~~~~~ ^~~~
[57/67] Compiling Web3Core BIP44.swift
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~
/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.
public init(urlSession: URLSession, apiKey: String) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
func data(for request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~
/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.
func data(for request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:28:23: error: cannot find 'URLRequest' in scope
let request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:67:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
try await urlSession.data(for: request)
~~~~~~~~~~ ^~~~
[58/67] Compiling Web3Core EthereumKeystoreV3.swift
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~
/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.
public init(urlSession: URLSession, apiKey: String) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
func data(for request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~
/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.
func data(for request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:28:23: error: cannot find 'URLRequest' in scope
let request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:67:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
try await urlSession.data(for: request)
~~~~~~~~~~ ^~~~
[59/67] Compiling Web3Core EtherscanTransactionChecker.swift
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:60:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~
/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.
public init(urlSession: URLSession, apiKey: String) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
func data(for request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:66:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~
/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.
func data(for request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:28:23: error: cannot find 'URLRequest' in scope
let request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift:67:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
try await urlSession.data(for: request)
~~~~~~~~~~ ^~~~
[60/70] Compiling Web3Core ContractProtocol.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
let err = errors.first(where: { $0.value.methodEncoding == data[0..<4] })?.value else {
^
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: note: use 'selectorEncoded' instead
let err = errors.first(where: { $0.value.methodEncoding == data[0..<4] })?.value else {
^~~~~~~~~~~~~~
selectorEncoded
[61/70] Compiling Web3Core EthereumContract.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
let err = errors.first(where: { $0.value.methodEncoding == data[0..<4] })?.value else {
^
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: note: use 'selectorEncoded' instead
let err = errors.first(where: { $0.value.methodEncoding == data[0..<4] })?.value else {
^~~~~~~~~~~~~~
selectorEncoded
[62/70] Compiling Web3Core Decodable+Extensions.swift
[63/70] Compiling Web3Core ABIEncoding.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:85: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:85: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:85: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:65: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:65: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:65: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:84: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:84: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:84: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:84: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:84: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:84: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:84: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:84: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:84: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:86: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:86: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:86: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:84: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:84: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:84: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:85: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:85: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:85: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:85: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:85: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:85: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:85: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:85: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:85: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
[64/70] Compiling Web3Core ABIParameterTypes.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:85: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:85: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:85: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:65: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:65: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:65: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:84: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:84: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:84: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:84: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:84: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:84: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:84: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:84: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:84: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:86: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:86: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:86: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:84: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:84: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:84: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:85: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:85: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:85: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:85: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:85: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:85: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:45: warning: expression implicitly coerced from 'Data?' to 'Any'
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:85: note: provide a default value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
?? <#default value#>
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:85: note: force-unwrap the value to avoid this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:85: note: explicitly cast to 'Any' with 'as Any' to silence this warning
return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
as Any
[65/70] Compiling Web3Core NativeTypesEncoding+Extension.swift
[66/70] Compiling Web3Core String+Extension.swift
[67/70] Compiling Web3Core Utilities.swift
[68/70] Compiling Web3Core RIPEMD160+StackOveflow.swift
[69/70] Compiling Web3Core ABIDecoding.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:210:16: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
return methodEncoding + data
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:210:16: note: use 'selectorEncoded' instead
return methodEncoding + data
^~~~~~~~~~~~~~
selectorEncoded
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:375:68: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
return ABIDecoder.decodeInputData(rawData, methodEncoding: methodEncoding, inputs: inputs)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:375:68: note: use 'selectorEncoded' instead
return ABIDecoder.decodeInputData(rawData, methodEncoding: methodEncoding, inputs: inputs)
^~~~~~~~~~~~~~
selectorEncoded
[70/70] Compiling Web3Core ABIElements.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:210:16: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
return methodEncoding + data
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:210:16: note: use 'selectorEncoded' instead
return methodEncoding + data
^~~~~~~~~~~~~~
selectorEncoded
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:375:68: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead.
return ABIDecoder.decodeInputData(rawData, methodEncoding: methodEncoding, inputs: inputs)
^
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:375:68: note: use 'selectorEncoded' instead
return ABIDecoder.decodeInputData(rawData, methodEncoding: methodEncoding, inputs: inputs)
^~~~~~~~~~~~~~
selectorEncoded
error: fatalError
BUILD FAILURE 5.10 linux