forked from cerc-io/ipld-eth-server
Deal transformer (#19)
This commit is contained in:
@@ -36,6 +36,7 @@ var (
|
||||
|
||||
//TODO: get pit and drip file method signatures directly from the ABI
|
||||
biteMethod = GetSolidityMethodSignature(CatABI, "Bite")
|
||||
dealMethod = GetSolidityMethodSignature(FlipperABI, "deal")
|
||||
dentMethod = GetSolidityMethodSignature(FlipperABI, "dent")
|
||||
dripFileIlkMethod = "file(bytes32,bytes32,uint256)"
|
||||
dripFileRepoMethod = GetSolidityMethodSignature(DripABI, "file")
|
||||
@@ -50,6 +51,7 @@ var (
|
||||
vatInitMethod = GetSolidityMethodSignature(VatABI, "init")
|
||||
|
||||
BiteSignature = GetEventSignature(biteMethod)
|
||||
DealSignature = GetLogNoteSignature(dealMethod)
|
||||
DentFunctionSignature = GetLogNoteSignature(dentMethod)
|
||||
DripFileIlkSignature = GetLogNoteSignature(dripFileIlkMethod)
|
||||
DripFileRepoSignature = GetLogNoteSignature(dripFileRepoMethod)
|
||||
|
||||
@@ -112,6 +112,12 @@ var _ = Describe("Event signature generator", func() {
|
||||
Expect(expected).To(Equal(actual))
|
||||
})
|
||||
|
||||
It("gets the flip deal method signature", func() {
|
||||
expected := "deal(uint256)"
|
||||
actual := shared.GetSolidityMethodSignature(shared.FlipperABI, "deal")
|
||||
|
||||
Expect(expected).To(Equal(actual))
|
||||
})
|
||||
})
|
||||
|
||||
Describe("it handles events", func() {
|
||||
|
||||
Reference in New Issue
Block a user