From 1478a02342470b4ddc59e6d3b324690aee31a2d7 Mon Sep 17 00:00:00 2001 From: mismirnov Date: Mon, 16 Dec 2024 23:02:23 +0300 Subject: [PATCH] Datasources api WIP; --- .run/API.run.xml | 33 ++++++- .run/Indexer.run.xml | 29 ++++++ cmd/tvl/init.go | 69 ++++++++++++++ cmd/tvl/main.go | 52 +++++++++++ configs/dipdup.yml | 10 ++ internal/tvl/l2beat/api.go | 103 +++++++++++++++++++++ internal/tvl/l2beat/interface.go | 11 +++ internal/tvl/l2beat/tvl.go | 40 ++++++++ internal/tvl/lama/api.go | 103 +++++++++++++++++++++ internal/tvl/lama/interface.go | 11 +++ internal/tvl/lama/tvl.go | 24 +++++ pkg/tvl/indexer.go | 153 +++++++++++++++++++++++++++++++ pkg/tvl/receiver/receiver.go | 46 ++++++++++ 13 files changed, 682 insertions(+), 2 deletions(-) create mode 100644 cmd/tvl/init.go create mode 100644 cmd/tvl/main.go create mode 100644 internal/tvl/l2beat/api.go create mode 100644 internal/tvl/l2beat/interface.go create mode 100644 internal/tvl/l2beat/tvl.go create mode 100644 internal/tvl/lama/api.go create mode 100644 internal/tvl/lama/interface.go create mode 100644 internal/tvl/lama/tvl.go create mode 100644 pkg/tvl/indexer.go create mode 100644 pkg/tvl/receiver/receiver.go diff --git a/.run/API.run.xml b/.run/API.run.xml index 2704c9a5..ed152cf0 100644 --- a/.run/API.run.xml +++ b/.run/API.run.xml @@ -1,8 +1,37 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +