From bb471f14346faa652ae6ce2d259b9549ccab01ab Mon Sep 17 00:00:00 2001 From: yushihang Date: Wed, 18 Sep 2024 20:54:46 +0800 Subject: [PATCH 1/2] Add baseFeePerGas for EIP-1559 --- Sources/Core/Json/EthereumBlockObject.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/Core/Json/EthereumBlockObject.swift b/Sources/Core/Json/EthereumBlockObject.swift index ee124579..11a7ffd7 100644 --- a/Sources/Core/Json/EthereumBlockObject.swift +++ b/Sources/Core/Json/EthereumBlockObject.swift @@ -69,6 +69,9 @@ public struct EthereumBlockObject: Codable { /// Array of uncle hashes. public let uncles: [EthereumData]? + /// The block base fees per gas (EIP-1559) + public let baseFeePerGas: EthereumQuantity? + /** * Represents a transaction as either a hash or an object. */ From 709619a66818a4fcc08c47f59f4f6b1397d82752 Mon Sep 17 00:00:00 2001 From: yushihang Date: Tue, 24 Sep 2024 22:23:36 +0800 Subject: [PATCH 2/2] Update EthereumTransactionReceiptObject.swift --- Sources/Core/Json/EthereumTransactionReceiptObject.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/Core/Json/EthereumTransactionReceiptObject.swift b/Sources/Core/Json/EthereumTransactionReceiptObject.swift index b86caff6..688fadf2 100644 --- a/Sources/Core/Json/EthereumTransactionReceiptObject.swift +++ b/Sources/Core/Json/EthereumTransactionReceiptObject.swift @@ -27,6 +27,9 @@ public struct EthereumTransactionReceiptObject: Codable { /// The amount of gas used by this specific transaction alone. public let gasUsed: EthereumQuantity + /// The price per unit of gas paid by the sender + public let effectiveGasPrice: EthereumQuantity? + /// 20 Bytes - The contract address created, if the transaction was a contract creation, otherwise nil. public let contractAddress: EthereumData?