From 267e52091ac306a728329f3e209fcccbbda71e7a Mon Sep 17 00:00:00 2001 From: lash Date: Sat, 19 Oct 2024 15:19:19 +0100 Subject: [PATCH] WIP start events listener code --- event/lib.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 event/lib.go diff --git a/event/lib.go b/event/lib.go new file mode 100644 index 0000000..732d0db --- /dev/null +++ b/event/lib.go @@ -0,0 +1,20 @@ +package event + +import ( + tevent "github.com/grassrootseconomics/eth-tracker/pkg/event" + trouter "github.com/grassrootseconomics/eth-tracker/pkg/router" +) + +var ( + typeTokenMint = "TOKEN_MINT" + typeTokenTransfer = "TOKEN_TRANSFER" + typeFaucetGive = "FAUCET_GIVE" +) + +func processFaucetGive(db db.Db, payload map[string]any) { + var sessionId string + var tokenString string + var amount uint64 + + +}