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.state_accounts
Types ¶
type AccountModelV2 ¶
type AccountModelV2 struct { ID int64 `db:"id"` StateID int64 `db:"state_id"` Balance string `db:"balance"` Nonce uint64 `db:"nonce"` CodeHash []byte `db:"code_hash"` StorageRoot string `db:"storage_root"` }
AccountModelV2 is the db model for an eth state account (decoded value of state leaf node) for v2 DB
type AccountModelV2WithMeta ¶
type AccountModelV2WithMeta struct { BlockHash string `db:"block_hash"` BlockNumber string `db:"block_number"` StatePath []byte `db:"state_path"` AccountModelV2 }
AccountModelV2WithMeta is the db model for eth.state_accounts for v2 DB, with the additional metadata required for converting to the v3 DB model
type AccountModelV3 ¶
type AccountModelV3 struct { HeaderID string `db:"header_id"` StatePath []byte `db:"state_path"` Balance string `db:"balance"` Nonce uint64 `db:"nonce"` CodeHash []byte `db:"code_hash"` StorageRoot string `db:"storage_root"` }
AccountModelV3 is a db model for an eth state account (decoded value of state leaf node) for v3 DB
type CSVWriter ¶ added in v1.1.0
type CSVWriter struct {
// contains filtered or unexported fields
}
CSVWriter struct for writing v3 DB eth.state_accounts models to a csv file
func NewWriter ¶ added in v1.1.0
func NewWriter(dst io.WriteCloser) *CSVWriter
NewWriter satisfies interfaces.WriterConstructor for eth.state_accounts
type Transformer ¶
type Transformer struct { }
Transformer struct for transforming v2 DB eth.state_accounts models into v3 DB models