aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/event.go
diff options
context:
space:
mode:
authorbas-vk <bas-vk@users.noreply.github.com>2016-12-22 08:51:20 +0800
committerFelix Lange <fjl@users.noreply.github.com>2016-12-22 08:51:20 +0800
commit6d15d00ac4b5f162737a27dfa6f8e9976383776e (patch)
tree59fd8d8ae13451b7e830b79e84fb0083e150c3d2 /accounts/abi/event.go
parentbdaa43510b294bf49bbac1392d5518611c06eedc (diff)
downloaddexon-6d15d00ac4b5f162737a27dfa6f8e9976383776e.tar
dexon-6d15d00ac4b5f162737a27dfa6f8e9976383776e.tar.gz
dexon-6d15d00ac4b5f162737a27dfa6f8e9976383776e.tar.bz2
dexon-6d15d00ac4b5f162737a27dfa6f8e9976383776e.tar.lz
dexon-6d15d00ac4b5f162737a27dfa6f8e9976383776e.tar.xz
dexon-6d15d00ac4b5f162737a27dfa6f8e9976383776e.tar.zst
dexon-6d15d00ac4b5f162737a27dfa6f8e9976383776e.zip
accounts/abi: add support for "anonymous" and "indexed" for events (#3464)
Diffstat (limited to 'accounts/abi/event.go')
-rw-r--r--accounts/abi/event.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/accounts/abi/event.go b/accounts/abi/event.go
index e74c7c732..51ab84241 100644
--- a/accounts/abi/event.go
+++ b/accounts/abi/event.go
@@ -25,10 +25,12 @@ import (
)
// Event is an event potentially triggered by the EVM's LOG mechanism. The Event
-// holds type information (inputs) about the yielded output
+// holds type information (inputs) about the yielded output. Anonymous events
+// don't get the signature canonical representation as the first LOG topic.
type Event struct {
- Name string
- Inputs []Argument
+ Name string
+ Anonymous bool
+ Inputs []Argument
}
// Id returns the canonical representation of the event's signature used by the