Documentation
¶
Index ¶
Constants ¶
View Source
const ExpectedRowLength = 5
Variables ¶
View Source
var ErrKeyNotFound = errors.New("unknown storage key")
Functions ¶
func HexToKeccak256Hash ¶
Types ¶
type ErrContractNotFound ¶
type ErrContractNotFound struct {
Contract string
}
func (ErrContractNotFound) Error ¶
func (e ErrContractNotFound) Error() string
type ErrMetadataMalformed ¶
type ErrMetadataMalformed struct {
MissingData Key
}
func (ErrMetadataMalformed) Error ¶
func (e ErrMetadataMalformed) Error() string
type ErrRowMalformed ¶
type ErrRowMalformed struct {
Length int
}
func (ErrRowMalformed) Error ¶
func (e ErrRowMalformed) Error() string
type PersistedDiff ¶
type RawDiff ¶
type RawDiff struct {
Address common.Address `db:"address"`
BlockHash common.Hash `db:"block_hash"`
BlockHeight int `db:"block_height"`
StorageKey common.Hash `db:"storage_key"`
StorageValue common.Hash `db:"storage_value"`
}
func FromGethStateDiff ¶
func FromGethStateDiff(account filters.AccountDiff, stateDiff *filters.StateDiff, storage filters.StorageDiff) (RawDiff, error)
func FromParityCsvRow ¶
type ValueMetadata ¶
type ValueMetadata struct {
Name string
Keys map[Key]string
Type ValueType
PackedNames map[int]string //zero indexed position in map => name of packed item
PackedTypes map[int]ValueType //zero indexed position in map => type of packed item
}
func GetValueMetadata ¶
func GetValueMetadata(name string, keys map[Key]string, valueType ValueType) ValueMetadata
Click to show internal directories.
Click to hide internal directories.