Skip to content

(VDB-1396) Add auction file transformer#221

Merged
rmulhol merged 1 commit intostagingfrom
vdb-1396-flap-flip-flop-file
Jul 8, 2020
Merged

(VDB-1396) Add auction file transformer#221
rmulhol merged 1 commit intostagingfrom
vdb-1396-flap-flip-flop-file

Conversation

@rmulhol
Copy link
Copy Markdown
Contributor

@rmulhol rmulhol commented Jul 2, 2020

No description provided.

@rmulhol rmulhol force-pushed the vdb-1396-flap-flip-flop-file branch 2 times, most recently from bcaf06b to c9771c0 Compare July 7, 2020 17:00
type = "eth_event"
repository = "github.com/makerdao/vdb-mcd-transformers"
migrations = "db/migrations"
contracts = ["MCD_FLAP", "MCD_FLIP_BAT_A", "MCD_FLIP_ETH_A", "MCD_FLIP_SAI", "MCD_FLIP_TUSD_A",
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 a note to remember to add new collateral types in the rebase.

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.

good call!

func (t Transformer) ToModels(_ string, logs []core.EventLog, db *postgres.DB) ([]event.InsertionModel, error) {
var models []event.InsertionModel
for _, log := range logs {
err := shared.VerifyLog(log.Log, shared.ThreeTopicsRequired, shared.LogDataNotRequired)
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.

I forget how we determine how many topics are required, but should this be FourTopicsRequired? Signature [0], msg.sender [1], arg1 [2], and arg2 [3]?

Copy link
Copy Markdown
Contributor Author

@rmulhol rmulhol Jul 7, 2020

Choose a reason for hiding this comment

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

yes - nice catch!

})
})

func auctionFileIntegrationTest(blockNumber int64, contractAddressHex, msgSenderAddressHex, what, data string) {
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.

💯

Copy link
Copy Markdown
Contributor

@yaoandrew yaoandrew left a comment

Choose a reason for hiding this comment

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

Nothing merge blocking, just had a few questions.

@rmulhol rmulhol force-pushed the vdb-1396-flap-flip-flop-file branch from c9771c0 to 09780fc Compare July 7, 2020 21:52
@rmulhol rmulhol merged commit f1d2312 into staging Jul 8, 2020
@rmulhol rmulhol deleted the vdb-1396-flap-flip-flop-file branch July 8, 2020 15:26
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