Skip to content

(VDB-1284) Add LogTake event transformer#166

Merged
rmulhol merged 2 commits intostagingfrom
vdb-1284-log-take
Apr 17, 2020
Merged

(VDB-1284) Add LogTake event transformer#166
rmulhol merged 2 commits intostagingfrom
vdb-1284-log-take

Conversation

@rmulhol
Copy link
Copy Markdown
Contributor

@rmulhol rmulhol commented Apr 15, 2020

No description provided.

)

type LogTakeEntity struct {
Id common.Hash
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

For some reason I couldn't get bytes32 id to decode into a *big.Int here - which is weird because it works fine for LogMake. Afaict the only difference is that the id is in the data rather than the topics here, so either that matters or I'm doing something wrong

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Huh, that does seem peculiar! I like what you ended up with though 👍

@rmulhol rmulhol force-pushed the vdb-1284-log-take branch from a73fcd0 to b487a7f Compare April 17, 2020 20:16
Copy link
Copy Markdown
Contributor

@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.

:shipit:

)

type LogTakeEntity struct {
Id common.Hash
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Huh, that does seem peculiar! I like what you ended up with though 👍

}
transformer := initializer.NewTransformer(db)

oasis_two_address := constants.GetContractAddress("OASIS_MATCHING_MARKET_TWO")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just curious why we're snake-casing this var?

func MedianDissSingleSignature() string { return getLogNoteTopicZero(medianDissSingleMethod()) }
func MedianKissBatchSignature() string { return getLogNoteTopicZero(medianKissBatchMethod()) }
func MedianDropSignature() string { return getLogNoteTopicZero(medianDropMethod()) }
func MedianKissBatchSignature() string { return getLogNoteTopicZero(medianKissBatchMethod()) }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔥

@rmulhol rmulhol merged commit 542c4ef into staging Apr 17, 2020
@rmulhol rmulhol deleted the vdb-1284-log-take branch April 17, 2020 21:01
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.

2 participants