Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTransformer ¶
func NewTransformer() interfaces.Transformer
NewTransformer satisfies interfaces.TransformerConstructor for eth.header_cids
Types ¶
type CSVWriter ¶ added in v1.1.0
type CSVWriter struct {
// contains filtered or unexported fields
}
CSVWriter struct for writing v3 DB eth.header_cids models to a csv file
func NewWriter ¶ added in v1.1.0
func NewWriter(dst io.WriteCloser) *CSVWriter
NewWriter satisfies interfaces.WriterConstructor for eth.header_cids
type HeaderModelV2 ¶
type HeaderModelV2 struct { ID int64 `db:"id"` BlockNumber string `db:"block_number"` BlockHash string `db:"block_hash"` ParentHash string `db:"parent_hash"` CID string `db:"cid"` MhKey string `db:"mh_key"` TotalDifficulty string `db:"td"` NodeID string `db:"node_id"` Reward string `db:"reward"` StateRoot string `db:"state_root"` UncleRoot string `db:"uncle_root"` TxRoot string `db:"tx_root"` RctRoot string `db:"receipt_root"` Bloom []byte `db:"bloom"` Timestamp uint64 `db:"timestamp"` TimesValidated int64 `db:"times_validated"` BaseFee *int64 `db:"base_fee"` }
HeaderModelV2 is the db model for eth.header_cids for v2 DB
type HeaderModelV2WithMeta ¶
type HeaderModelV2WithMeta struct { IPLD []byte `db:"data"` HeaderModelV2 }
HeaderModelV2WithMeta is the db model for eth.header_cids for v2 DB with the additional data required to convert to the v3 model
type HeaderModelV3 ¶
type HeaderModelV3 struct { BlockNumber string `db:"block_number"` BlockHash string `db:"block_hash"` ParentHash string `db:"parent_hash"` CID string `db:"cid"` TotalDifficulty string `db:"td"` NodeID string `db:"node_id"` Reward string `db:"reward"` StateRoot string `db:"state_root"` TxRoot string `db:"tx_root"` RctRoot string `db:"receipt_root"` UncleRoot string `db:"uncle_root"` Bloom []byte `db:"bloom"` Timestamp uint64 `db:"timestamp"` MhKey string `db:"mh_key"` TimesValidated int64 `db:"times_validated"` Coinbase string `db:"coinbase"` }
HeaderModelV3 is the db model for eth.header_cids for v3 DB
type Transformer ¶
type Transformer struct { }
Transformer struct for transforming v2 DB eth.header_cids models to v3 DB models
Click to show internal directories.
Click to hide internal directories.