mirror of
https://github.com/luxfi/safe-ios.git
synced 2026-10-30 15:19:20 +00:00
- 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.
38 lines
662 B
Swift
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
|
|
}
|