Skip to content

Commit 4d41993

Browse files
Merge web3 and Web3 into unite public class Web3 type.
1 parent 0bd55d4 commit 4d41993

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+142
-142
lines changed

Sources/web3swift/EthereumAPICalls/Ethereum/Eth+Call.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Foundation
77
import Core
88

99

10-
extension web3.Eth {
10+
extension Web3.Eth {
1111
public func callTransaction(_ transaction: CodableTransaction) async throws -> Data {
1212
let request: APIRequest = .call(transaction, transaction.callOnBlock ?? .latest)
1313
let response: APIResponse<Data> = try await APIRequest.sendRequest(with: self.provider, for: request)

Sources/web3swift/EthereumAPICalls/Ethereum/Eth+EstimateGas.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import BigInt
88
import Core
99

1010

11-
extension web3.Eth {
11+
extension Web3.Eth {
1212
public func estimateGas(for transaction: CodableTransaction, onBlock: BlockNumber = .latest) async throws -> BigUInt {
1313
let request: APIRequest = .estimateGas(transaction, onBlock)
1414
let response: APIResponse<BigUInt> = try await APIRequest.sendRequest(with: provider, for: request)

Sources/web3swift/EthereumAPICalls/Ethereum/Eth+FeeHistory.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Foundation
77
import BigInt
88
import Core
99

10-
extension web3.Eth {
10+
extension Web3.Eth {
1111
func feeHistory(blockCount: BigUInt, block: BlockNumber, percentiles:[Double]) async throws -> Oracle.FeeHistory {
1212
let requestCall: APIRequest = .feeHistory(blockCount, block, percentiles)
1313
let response: APIResponse<Oracle.FeeHistory> = try await APIRequest.sendRequest(with: web3.provider, for: requestCall)

Sources/web3swift/EthereumAPICalls/Ethereum/Eth+GetAccounts.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Foundation
77
import BigInt
88
import Core
99

10-
extension web3.Eth {
10+
extension Web3.Eth {
1111
public func ownedAccounts() async throws -> [EthereumAddress] {
1212
guard self.web3.provider.attachedKeystoreManager == nil else {
1313
return try self.web3.wallet.getAccounts()

Sources/web3swift/EthereumAPICalls/Ethereum/Eth+GetBalance.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Foundation
77
import Core
88
import BigInt
99

10-
extension web3.Eth {
10+
extension Web3.Eth {
1111
public func getBalance(for address: EthereumAddress, onBlock: BlockNumber = .latest) async throws -> BigUInt {
1212
let requestCall: APIRequest = .getBalance(address.address, onBlock)
1313
let response: APIResponse<BigUInt> = try await APIRequest.sendRequest(with: web3.provider, for: requestCall)

Sources/web3swift/EthereumAPICalls/Ethereum/Eth+GetBlockByHash.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import BigInt
88
import Core
99

1010

11-
extension web3.Eth {
11+
extension Web3.Eth {
1212
public func block(by hash: Data, fullTransactions: Bool = false) async throws -> Block {
1313
guard let hexString = String(data: hash, encoding: .utf8)?.addHexPrefix() else { throw Web3Error.dataError }
1414
let requestCall: APIRequest = .getBlockByHash(hash.toHexString().addHexPrefix(), fullTransactions)

Sources/web3swift/EthereumAPICalls/Ethereum/Eth+GetBlockByNumber.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import BigInt
88
import Core
99

1010

11-
extension web3.Eth {
11+
extension Web3.Eth {
1212
public func block(by hash: Hash, fullTransactions: Bool = false) async throws -> Block {
1313
let requestCall: APIRequest = .getBlockByHash(hash, fullTransactions)
1414
let response: APIResponse<Block> = try await APIRequest.sendRequest(with: self.provider, for: requestCall)

Sources/web3swift/EthereumAPICalls/Ethereum/Eth+GetBlockNumber.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import BigInt
88
import Core
99

1010

11-
extension web3.Eth {
11+
extension Web3.Eth {
1212
public func blockNumber() async throws -> BigUInt {
1313
let response: APIResponse<BigUInt> = try await APIRequest.sendRequest(with: web3.provider, for: .blockNumber)
1414
return response.result

Sources/web3swift/EthereumAPICalls/Ethereum/Eth+GetCode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Foundation
77
import Core
88
import BigInt
99

10-
extension web3.Eth {
10+
extension Web3.Eth {
1111
public func code(for address: EthereumAddress, onBlock: BlockNumber = .latest) async throws -> Hash {
1212
let requestCall: APIRequest = .getCode(address.address, onBlock)
1313
let response: APIResponse<Hash> = try await APIRequest.sendRequest(with: self.provider, for: requestCall)

Sources/web3swift/EthereumAPICalls/Ethereum/Eth+GetGasPrice.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import BigInt
88
import Core
99

1010

11-
extension web3.Eth {
11+
extension Web3.Eth {
1212
public func gasPrice() async throws -> BigUInt {
1313
let response: APIResponse<BigUInt> = try await APIRequest.sendRequest(with: self.provider, for: .gasPrice)
1414
return response.result

0 commit comments

Comments
 (0)