aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/events.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2014-10-14 07:58:31 +0800
committerFelix Lange <fjl@twurst.com>2014-10-17 00:50:48 +0800
commit36cdab206849c7e363e0b9911553098c3e8ca644 (patch)
tree5cf4093f0531b435e7dc4092953a60903d837429 /ethchain/events.go
parent690690489610352d43f8547744b6c9486ad5affa (diff)
downloaddexon-36cdab206849c7e363e0b9911553098c3e8ca644.tar.gz
dexon-36cdab206849c7e363e0b9911553098c3e8ca644.tar.zst
dexon-36cdab206849c7e363e0b9911553098c3e8ca644.zip
all: use (blocking) event package instead of ethreact
Diffstat (limited to 'ethchain/events.go')
-rw-r--r--ethchain/events.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/ethchain/events.go b/ethchain/events.go
new file mode 100644
index 000000000..05c21edfe
--- /dev/null
+++ b/ethchain/events.go
@@ -0,0 +1,10 @@
+package ethchain
+
+type TxEvent struct {
+ Type int // TxPre || TxPost
+ Tx *Transaction
+}
+
+type NewBlockEvent struct {
+ Block *Block
+}