Add Cat storage transformer

This commit is contained in:
Edvard
2019-02-20 14:37:46 +01:00
parent 6e0f033078
commit cd6611d2ec
8 changed files with 415 additions and 3 deletions
@@ -27,6 +27,8 @@ func Decode(row StorageDiffRow, metadata StorageValueMetadata) (interface{}, err
return decodeUint256(row.StorageValue.Bytes()), nil
case Address:
return decodeAddress(row.StorageValue.Bytes()), nil
case Bytes32:
return row.StorageValue.Hex(), nil
default:
return nil, ErrTypeNotFound{}
}
@@ -27,8 +27,9 @@ const (
type Key string
const (
Ilk Key = "ilk"
Guy Key = "guy"
Ilk Key = "ilk"
Guy Key = "guy"
Flip Key = "flip"
)
type StorageValueMetadata struct {