867f92c431
- Continuously parse storage diffs CSV data to read Pit contract state - Convert ilks in database to raw bytes32 value for use in generating storage keys dynamically - Persist storage diffs with block number and hash for validation
23 lines
556 B
Go
23 lines
556 B
Go
package mocks
|
|
|
|
import (
|
|
"github.com/ethereum/go-ethereum/common"
|
|
"github.com/vulcanize/vulcanizedb/pkg/datastore/postgres"
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/storage_diffs/shared"
|
|
)
|
|
|
|
type MockMappings struct {
|
|
Metadata shared.StorageValueMetadata
|
|
LookupCalled bool
|
|
LookupErr error
|
|
}
|
|
|
|
func (mappings *MockMappings) Lookup(key common.Hash) (shared.StorageValueMetadata, error) {
|
|
mappings.LookupCalled = true
|
|
return mappings.Metadata, mappings.LookupErr
|
|
}
|
|
|
|
func (*MockMappings) SetDB(db *postgres.DB) {
|
|
panic("implement me")
|
|
}
|