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.receipt_cids
Types ¶
type CSVWriter ¶ added in v1.1.0
type CSVWriter struct {
// contains filtered or unexported fields
}
CSVWriter struct for writing v3 DB eth.receipt_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.receipt_cids
type ReceiptModelV2 ¶
type ReceiptModelV2 struct { ID int64 `db:"id"` TxID int64 `db:"tx_id"` LeafCID string `db:"leaf_cid"` LeafMhKey string `db:"leaf_mh_key"` PostStatus uint64 `db:"post_status"` PostState string `db:"post_state"` Contract string `db:"contract"` ContractHash string `db:"contract_hash"` LogRoot string `db:"log_root"` }
ReceiptModelV2 is the db model for eth.receipt_cids for v2 DB
type ReceiptModelV2WithMeta ¶
type ReceiptModelV2WithMeta struct { TxHash string `db:"tx_hash"` ReceiptModelV2 }
ReceiptModelV2WithMeta is the db model for eth.receipt_cids for v2 DB with the additional metadata required to convert to the v3 model
type ReceiptModelV3 ¶
type ReceiptModelV3 struct { TxID string `db:"tx_id"` LeafCID string `db:"leaf_cid"` Contract string `db:"contract"` ContractHash string `db:"contract_hash"` LeafMhKey string `db:"leaf_mh_key"` PostState string `db:"post_state"` PostStatus uint64 `db:"post_status"` LogRoot string `db:"log_root"` }
ReceiptModelV3 is the db model for eth.receipt_cids for v3 DB
type Transformer ¶
type Transformer struct { }
Transformer struct for transforming v2 DB eth.receipt_cids models to v3 DB models
Click to show internal directories.
Click to hide internal directories.