Files
Dmitry Bespalov e113092d59 refs/heads/create-safe-prototype Added Eth package - a new version of the Ethereum RPC Api that would reduce program complexity.
- New way to use rpc methods for easier batching and completion blocks
- Using classes instead of structs in places where reuse of member variables is needed
- New API would work with the domain types and not with JSON types, thus making program complexity lower.
2022-02-06 18:45:50 +01:00

38 lines
662 B
Swift

//
// Created by Dmitry Bespalov on 06.02.22.
//
import Foundation
import Solidity
class Block {
var number: Sol.UInt256
var hash: Hash
var parent: Block
var sha3Uncles: Hash
var uncles: [Block]
var stateRoot: Hash
var state: [Account]
var transactionsRoot: Hash
var transactions: [Transaction]
var logsBloom: BloomFilter
var gasLimit: Sol.UInt64
var gasUsed: Sol.UInt64
var baseFeePerGas: Sol.UInt256
var size: Sol.UInt64
var miner: Account
var nonce: Sol.UInt8
var extraData: Data
var difficulty: Sol.UInt256
var totalDifficulty: Sol.UInt256
var timestamp: Sol.UInt64
}