-
Notifications
You must be signed in to change notification settings - Fork 26
/
block.go
28 lines (25 loc) · 1.53 KB
/
block.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package types
import "github.com/Alethio/memento/data/storable"
type Block struct {
Number int64 `json:"number"`
BlockHash string `json:"blockHash"`
ParentBlockHash string `json:"parentBlockHash"`
BlockCreationTime storable.DatetimeToJSONUnix `json:"blockCreationTime"`
BlockGasLimit string `json:"blockGasLimit"`
BlockGasUsed string `json:"blockGasUsed"`
BlockDifficulty string `json:"blockDifficulty"`
TotalBlockDifficulty string `json:"totalBlockDifficulty"`
BlockExtraData storable.ByteArray `json:"blockExtraData"`
BlockMixHash storable.ByteArray `json:"blockMixHash"`
BlockNonce storable.ByteArray `json:"blockNonce"`
BlockSize int64 `json:"blockSize"`
BlockLogsBloom storable.ByteArray `json:"blockLogsBloom"`
IncludesUncle storable.JSONStringArray `json:"includesUncle"`
HasBeneficiary storable.ByteArray `json:"hasBeneficiary"`
HasReceiptsTrie storable.ByteArray `json:"hasReceiptsTrie"`
HasTxTrie storable.ByteArray `json:"hasTxTrie"`
Sha3Uncles storable.ByteArray `json:"sha3Uncles"`
NumberOfUncles int32 `json:"numberOfUncles"`
NumberOfTxs int32 `json:"numberOfTxs"`
Txs []Tx `json:"txs"`
}