forked from cerc-io/ipld-eth-server
Add vat_move transformer (#47)
* Add vat_move transformer base * Add vat_move migrations * Add test data for vat_move * Add vat_move transformer to initialisers * Add numeric cast to psql insert of Rad * Add new db schema * Dependency update * Expand abbreviation in repository * Add test suite for vat_move * Add header checking to transformer and mock repository * Remove trailing zero in test data * Fix minor mishaps * Go fmt nitpicking * Refactoring in tests * Add tests covering checked headers stuff (and fix revealed bugs) * go fmt fixes * Implement batching behaviour of transformer * Small fixes after review * Go fmt
This commit is contained in:
@@ -58,6 +58,7 @@ var (
|
||||
vatHealMethod = GetSolidityMethodSignature(VatABI, "heal")
|
||||
vatGrabMethod = GetSolidityMethodSignature(VatABI, "grab")
|
||||
vatInitMethod = GetSolidityMethodSignature(VatABI, "init")
|
||||
vatMoveMethod = GetSolidityMethodSignature(VatABI, "move")
|
||||
vatFoldMethod = GetSolidityMethodSignature(VatABI, "fold")
|
||||
vatTollMethod = GetSolidityMethodSignature(VatABI, "toll")
|
||||
vatTuneMethod = GetSolidityMethodSignature(VatABI, "tune")
|
||||
@@ -83,6 +84,7 @@ var (
|
||||
VatHealSignature = GetLogNoteSignature(vatHealMethod)
|
||||
VatGrabSignature = GetLogNoteSignature(vatGrabMethod)
|
||||
VatInitSignature = GetLogNoteSignature(vatInitMethod)
|
||||
VatMoveSignature = GetLogNoteSignature(vatMoveMethod)
|
||||
VatFoldSignature = GetLogNoteSignature(vatFoldMethod)
|
||||
VatTollSignature = GetLogNoteSignature(vatTollMethod)
|
||||
VatTuneSignature = GetLogNoteSignature(vatTuneMethod)
|
||||
|
||||
@@ -146,6 +146,13 @@ var _ = Describe("Event signature generator", func() {
|
||||
|
||||
Expect(expected).To(Equal(actual))
|
||||
})
|
||||
|
||||
It("gets the vat move method signature", func() {
|
||||
expected := "move(bytes32,bytes32,int256)"
|
||||
actual := shared.GetSolidityMethodSignature(shared.VatABI, "move")
|
||||
|
||||
Expect(expected).To(Equal(actual))
|
||||
})
|
||||
})
|
||||
|
||||
Describe("it handles events", func() {
|
||||
|
||||
@@ -58,4 +58,4 @@ func hexStringsToAddresses(hexStrings []string) []common.Address {
|
||||
}
|
||||
|
||||
return addresses
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user