Skip to content

1189 new move transformer interfaces#48

Merged
elizabethengelman merged 8 commits intostagingfrom
1189-new-move-transformer-interfaces
Feb 18, 2020
Merged

1189 new move transformer interfaces#48
elizabethengelman merged 8 commits intostagingfrom
1189-new-move-transformer-interfaces

Conversation

@elizabethengelman
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@rmulhol rmulhol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀


type ITransformer interface {
Execute(diff types.PersistedDiff) error
KeccakContractAddress() common.Hash
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really minor and not a blocker to this PR but would it make sense to memoize the result for the implementation of this function on ln 56? Thinking we could have a private var on the Transformer struct and only compute the hash at runtime if it hasn't already been called and assigned

Copy link
Copy Markdown

@gslaughl gslaughl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 question, but LGTM! :shipit:

return types.HexToKeccak256Hash(transformer.Address.Hex())
emptyHash := common.Hash{}
if transformer.hashedAddress == emptyHash {
return types.HexToKeccak256Hash(transformer.Address.Hex())
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'm missing where hashedAddress is getting set 🤔

Is it meant to happen on this line?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦‍♀ good catch! i'll push a fix up shortly.

@elizabethengelman elizabethengelman force-pushed the 1189-new-move-transformer-interfaces branch from 81b6702 to 3a5ac65 Compare February 17, 2020 22:11
@elizabethengelman elizabethengelman merged commit 5915847 into staging Feb 18, 2020
@elizabethengelman elizabethengelman deleted the 1189-new-move-transformer-interfaces branch February 18, 2020 21:11
elizabethengelman pushed a commit that referenced this pull request Feb 25, 2020
* (VDB-1164) Get node name from web3_clientVersion

Use IPC path as node ID

* 1189 new move transformer interfaces (#48)

* Move storage Transformer interface to storage pkg

* Handle new storage transformer interface in plugin writer

* Add additional storage value loader logging

* Move event transformer interface to factories/event pkg

* Handle new event transformer interface location in plugin writer

* Memoize an transformer's keccakedAddress

* Update resetHeaderCheckCount docker setup (#50)

* 1189 fix (#52)

* Update ITransformer.GetStorageKeysLookup to return a KeysLookup

* Update custom-transformers.md with new transformer paths

* TO-879:docker ci (#40)

* dockerhub via travis

* add extract-diffs

* add reset-header-check

* (VDB-1207) Remove non-essential smart comments (#53)

- configure via postgraphile.tags.json5 instead

* Update postgres version in travis build (#54)

* Update postgres version in travis build to 11.6

this is the most recent posgres version available in RDS at the moment

* update travis secrets (#55)

Co-authored-by: Gabe Laughlin <gabe@bistrotech.net>
Co-authored-by: daimesava <56128157+daimesava@users.noreply.github.com>
Co-authored-by: Rob Mulholand <rmulholand@8thlight.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants