From ab94d0f55d386176dc9416ab94652f992ba7148d Mon Sep 17 00:00:00 2001 From: Vitaliy <145893460+Vinnie161@users.noreply.github.com> Date: Wed, 9 Oct 2024 11:01:35 +0300 Subject: [PATCH] Renamed image and repo. (#33) * Renamed image and repo. * Renamed image and repo. * feat: "finding-forwarder" to "onchain-mon" --------- Co-authored-by: Sergey Wh1te --- .github/workflows/build_devel.yml | 2 +- .github/workflows/build_production.yml | 2 +- Changelog.md | 1 + Dockerfile | 4 ++-- Makefile | 4 ++-- cmd/feeder/main.go | 12 +++++------ cmd/forwarder/main.go | 18 ++++++++-------- docker-compose.yml | 4 ++-- forta-local-config.yml | 18 ---------------- go.mod | 18 ++-------------- go.sum | 28 ------------------------- internal/app/feeder/feeder.go | 6 +++--- internal/app/forwarder/forwarder.go | 8 +++---- internal/app/server/server.go | 6 +++--- internal/app/server/usecase.go | 10 ++++----- internal/connectors/logger/logger.go | 2 +- internal/connectors/nats/nats.go | 2 +- internal/pkg/chain/chain.go | 4 ++-- internal/pkg/chain/chain_test.go | 4 ++-- internal/pkg/notifiler/contract.go | 2 +- internal/pkg/notifiler/discord.go | 4 ++-- internal/pkg/notifiler/discord_test.go | 6 +++--- internal/pkg/notifiler/format_alert.go | 2 +- internal/pkg/notifiler/opsgenie.go | 4 ++-- internal/pkg/notifiler/opsgenie_test.go | 6 +++--- internal/pkg/notifiler/telegram.go | 4 ++-- internal/pkg/notifiler/telegram_test.go | 6 +++--- internal/utils/registry/registry.go | 4 ++-- 28 files changed, 66 insertions(+), 125 deletions(-) delete mode 100644 forta-local-config.yml diff --git a/.github/workflows/build_devel.yml b/.github/workflows/build_devel.yml index 9542699..3347f3e 100644 --- a/.github/workflows/build_devel.yml +++ b/.github/workflows/build_devel.yml @@ -7,7 +7,7 @@ on: - devel env: - IMAGE_NAME: forta-finding-forwarder + IMAGE_NAME: onchain-mon IMAGE_TAG: latest jobs: diff --git a/.github/workflows/build_production.yml b/.github/workflows/build_production.yml index aa33cbc..69cb32f 100644 --- a/.github/workflows/build_production.yml +++ b/.github/workflows/build_production.yml @@ -7,7 +7,7 @@ on: - main env: - IMAGE_NAME: forta-finding-forwarder + IMAGE_NAME: onchain-mon IMAGE_TAG: stable jobs: diff --git a/Changelog.md b/Changelog.md index cd2249e..a883b6e 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,6 +1,7 @@ ## 08.10.2024 1. Split up feeder, forwarder to independent bin applications 2. Added mechanism for using UniqueKey for collecting quorum +3. Renamed repo from "finding-forwarder" to "onchain-mon" ## 04.10.2024 1. Removed Forta integration. diff --git a/Dockerfile b/Dockerfile index 4503426..2d8738f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,8 +6,8 @@ COPY . . RUN apk add git=2.45.2-r0 -RUN go build -ldflags="-X github.com/lidofinance/finding-forwarder/internal/connectors/metrics.Commit=$(git rev-parse HEAD)" -o ./bin/feeder ./cmd/feeder -RUN go build -ldflags="-X github.com/lidofinance/finding-forwarder/internal/connectors/metrics.Commit=$(git rev-parse HEAD)" -o ./bin/forwarder ./cmd/forwarder +RUN go build -ldflags="-X github.com/lidofinance/onchain-mon/internal/connectors/metrics.Commit=$(git rev-parse HEAD)" -o ./bin/feeder ./cmd/feeder +RUN go build -ldflags="-X github.com/lidofinance/onchain-mon/internal/connectors/metrics.Commit=$(git rev-parse HEAD)" -o ./bin/forwarder ./cmd/forwarder # Run stage FROM alpine:3.20 diff --git a/Makefile b/Makefile index 1e690d1..ee73d06 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ ### GO tools # Makefile generate-docker: - docker build -t ff-monitoring -f Dockerfile . + docker build -t lidofinance/onchain-mon:stable -f Dockerfile . .PHONY: generate-docker .PHONY: tools @@ -23,7 +23,7 @@ vet: go vet ./cmd/... && go vet ./internal/... imports: - bin/goimports -local github.com/lidofinance/finding-forwarder -w -d $(shell find . -type f -name '*.go'| grep -v "/vendor/\|/.git/\|/tools/") + bin/goimports -local github.com/lidofinance/onchain-mon -w -d $(shell find . -type f -name '*.go'| grep -v "/vendor/\|/.git/\|/tools/") fix-lint: bin/golangci-lint run --config=.golangci.yml --fix ./cmd... ./internal/... diff --git a/cmd/feeder/main.go b/cmd/feeder/main.go index 0998318..34172ac 100644 --- a/cmd/feeder/main.go +++ b/cmd/feeder/main.go @@ -12,12 +12,12 @@ import ( "github.com/prometheus/client_golang/prometheus" "golang.org/x/sync/errgroup" - "github.com/lidofinance/finding-forwarder/internal/app/feeder" - "github.com/lidofinance/finding-forwarder/internal/app/server" - "github.com/lidofinance/finding-forwarder/internal/connectors/logger" - "github.com/lidofinance/finding-forwarder/internal/connectors/metrics" - nc "github.com/lidofinance/finding-forwarder/internal/connectors/nats" - "github.com/lidofinance/finding-forwarder/internal/env" + "github.com/lidofinance/onchain-mon/internal/app/feeder" + "github.com/lidofinance/onchain-mon/internal/app/server" + "github.com/lidofinance/onchain-mon/internal/connectors/logger" + "github.com/lidofinance/onchain-mon/internal/connectors/metrics" + nc "github.com/lidofinance/onchain-mon/internal/connectors/nats" + "github.com/lidofinance/onchain-mon/internal/env" ) func main() { diff --git a/cmd/forwarder/main.go b/cmd/forwarder/main.go index fdafcd5..8ba76d1 100644 --- a/cmd/forwarder/main.go +++ b/cmd/forwarder/main.go @@ -16,15 +16,15 @@ import ( "github.com/prometheus/client_golang/prometheus" "golang.org/x/sync/errgroup" - "github.com/lidofinance/finding-forwarder/internal/app/forwarder" - "github.com/lidofinance/finding-forwarder/internal/app/server" - "github.com/lidofinance/finding-forwarder/internal/connectors/logger" - "github.com/lidofinance/finding-forwarder/internal/connectors/metrics" - nc "github.com/lidofinance/finding-forwarder/internal/connectors/nats" - "github.com/lidofinance/finding-forwarder/internal/connectors/redis" - "github.com/lidofinance/finding-forwarder/internal/env" - "github.com/lidofinance/finding-forwarder/internal/utils/registry" - "github.com/lidofinance/finding-forwarder/internal/utils/registry/teams" + "github.com/lidofinance/onchain-mon/internal/app/forwarder" + "github.com/lidofinance/onchain-mon/internal/app/server" + "github.com/lidofinance/onchain-mon/internal/connectors/logger" + "github.com/lidofinance/onchain-mon/internal/connectors/metrics" + nc "github.com/lidofinance/onchain-mon/internal/connectors/nats" + "github.com/lidofinance/onchain-mon/internal/connectors/redis" + "github.com/lidofinance/onchain-mon/internal/env" + "github.com/lidofinance/onchain-mon/internal/utils/registry" + "github.com/lidofinance/onchain-mon/internal/utils/registry/teams" ) const maxMsgSize = 3 * 1024 * 1024 // 3 Mb diff --git a/docker-compose.yml b/docker-compose.yml index daa48e4..051fc40 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,7 +27,7 @@ services: - ./nats/nats.conf:/etc/nats/nats.conf forwarder: - image: ff-monitoring + image: lidofinance/onchain-mon:stable container_name: forwarder build: ./ restart: always @@ -59,7 +59,7 @@ services: - nats feeder: - image: ff-monitoring + image: lidofinance/onchain-mon:stable container_name: feeder build: ./ restart: always diff --git a/forta-local-config.yml b/forta-local-config.yml deleted file mode 100644 index 1785f6d..0000000 --- a/forta-local-config.yml +++ /dev/null @@ -1,18 +0,0 @@ -chainId: 1 - -scan: - jsonRpc: - url: https://eth.drpc.org - -localMode: - enable: true - logToStdout: true - privateKeyHex: 984d28fde238c32d06420db29b7277f5fd24c61954d2da491bf7d1ef19996bd0 - # webhookUrl: http://host.docker.internal:8080/alerts - webhookUrl: http://finding-forwarder-server:8080/alerts - standalone: - enable: true - botContainers: - - host.docker.internal - - ethereum-steth - - l2-bridge-arbitrum \ No newline at end of file diff --git a/go.mod b/go.mod index 87e729e..f21cfcd 100644 --- a/go.mod +++ b/go.mod @@ -1,14 +1,9 @@ -module github.com/lidofinance/finding-forwarder +module github.com/lidofinance/onchain-mon go 1.23.1 require ( github.com/go-chi/chi/v5 v5.1.0 - github.com/go-openapi/errors v0.22.0 - github.com/go-openapi/strfmt v0.23.0 - github.com/go-openapi/swag v0.23.0 - github.com/go-openapi/validate v0.24.0 - github.com/mailru/easyjson v0.7.7 // indirect github.com/nats-io/nats.go v1.37.0 github.com/prometheus/client_golang v1.20.4 github.com/spf13/viper v1.19.0 @@ -21,29 +16,20 @@ require ( github.com/google/uuid v1.6.0 github.com/hashicorp/golang-lru/v2 v2.0.7 github.com/samber/slog-chi v1.11.1 - google.golang.org/protobuf v1.34.2 ) require ( - github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect - github.com/go-openapi/analysis v0.23.0 // indirect - github.com/go-openapi/jsonpointer v0.21.0 // indirect - github.com/go-openapi/jsonreference v0.21.0 // indirect - github.com/go-openapi/loads v0.22.0 // indirect - github.com/go-openapi/spec v0.21.0 // indirect github.com/hashicorp/hcl v1.0.0 // indirect - github.com/josharian/intern v1.0.0 // indirect github.com/klauspost/compress v1.17.9 // indirect github.com/magiconair/properties v1.8.7 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/nats-io/nkeys v0.4.7 // indirect github.com/nats-io/nuid v1.0.1 // indirect - github.com/oklog/ulid v1.3.1 // indirect github.com/onsi/gomega v1.34.2 // indirect github.com/pelletier/go-toml/v2 v2.2.3 // indirect github.com/prometheus/client_model v0.6.1 // indirect @@ -57,7 +43,6 @@ require ( github.com/spf13/cast v1.7.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/subosito/gotenv v1.6.0 // indirect - go.mongodb.org/mongo-driver v1.16.1 // indirect go.opentelemetry.io/otel v1.29.0 // indirect go.opentelemetry.io/otel/trace v1.29.0 // indirect go.uber.org/multierr v1.11.0 // indirect @@ -66,6 +51,7 @@ require ( golang.org/x/net v0.29.0 // indirect golang.org/x/sys v0.25.0 // indirect golang.org/x/text v0.18.0 // indirect + google.golang.org/protobuf v1.34.2 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 30929be..8797500 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,3 @@ -github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so= -github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/avast/retry-go/v4 v4.6.0 h1:K9xNA+KeB8HHc2aWFuLb25Offp+0iVRXEvFx8IinRJA= github.com/avast/retry-go/v4 v4.6.0/go.mod h1:gvWlPhBVsvBbLkVGDg/KwvBv0bEkCOLRRSHKIr2PyOE= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= @@ -17,24 +15,6 @@ github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nos github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= github.com/go-chi/chi/v5 v5.1.0 h1:acVI1TYaD+hhedDJ3r54HyA6sExp3HfXq7QWEEY/xMw= github.com/go-chi/chi/v5 v5.1.0/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= -github.com/go-openapi/analysis v0.23.0 h1:aGday7OWupfMs+LbmLZG4k0MYXIANxcuBTYUC03zFCU= -github.com/go-openapi/analysis v0.23.0/go.mod h1:9mz9ZWaSlV8TvjQHLl2mUW2PbZtemkE8yA5v22ohupo= -github.com/go-openapi/errors v0.22.0 h1:c4xY/OLxUBSTiepAg3j/MHuAv5mJhnf53LLMWFB+u/w= -github.com/go-openapi/errors v0.22.0/go.mod h1:J3DmZScxCDufmIMsdOuDHxJbdOGC0xtUynjIx092vXE= -github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ= -github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY= -github.com/go-openapi/jsonreference v0.21.0 h1:Rs+Y7hSXT83Jacb7kFyjn4ijOuVGSvOdF2+tg1TRrwQ= -github.com/go-openapi/jsonreference v0.21.0/go.mod h1:LmZmgsrTkVg9LG4EaHeY8cBDslNPMo06cago5JNLkm4= -github.com/go-openapi/loads v0.22.0 h1:ECPGd4jX1U6NApCGG1We+uEozOAvXvJSF4nnwHZ8Aco= -github.com/go-openapi/loads v0.22.0/go.mod h1:yLsaTCS92mnSAZX5WWoxszLj0u+Ojl+Zs5Stn1oF+rs= -github.com/go-openapi/spec v0.21.0 h1:LTVzPc3p/RzRnkQqLRndbAzjY0d0BCL72A6j3CdL9ZY= -github.com/go-openapi/spec v0.21.0/go.mod h1:78u6VdPw81XU44qEWGhtr982gJ5BWg2c0I5XwVMotYk= -github.com/go-openapi/strfmt v0.23.0 h1:nlUS6BCqcnAk0pyhi9Y+kdDVZdZMHfEKQiS4HaMgO/c= -github.com/go-openapi/strfmt v0.23.0/go.mod h1:NrtIpfKtWIygRkKVsxh7XQMDQW5HKQl6S5ik2elW+K4= -github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE= -github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ= -github.com/go-openapi/validate v0.24.0 h1:LdfDKwNbpB6Vn40xhTdNZAnfLECL81w+VX3BumrGD58= -github.com/go-openapi/validate v0.24.0/go.mod h1:iyeX1sEufmv3nPbBdX3ieNviWnOZaJ1+zquzJEf2BAQ= github.com/go-redis/redis/v8 v8.11.5 h1:AcZZR7igkdvfVmQTPnu9WE37LRrO/YrBH5zWyjDC0oI= github.com/go-redis/redis/v8 v8.11.5/go.mod h1:gREzHqY1hg6oD9ngVRbLStwAWKhA0FEgq8Jd4h5lpwo= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= @@ -45,8 +25,6 @@ github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= -github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA= github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= @@ -57,8 +35,6 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= -github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= -github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= @@ -71,8 +47,6 @@ github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= -github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4= -github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= github.com/onsi/gomega v1.34.2 h1:pNCwDkzrsv7MS9kpaQvVb1aVLahQXyJ/Tv5oAZMI3i8= @@ -111,8 +85,6 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= -go.mongodb.org/mongo-driver v1.16.1 h1:rIVLL3q0IHM39dvE+z2ulZLp9ENZKThVfuvN/IiN4l8= -go.mongodb.org/mongo-driver v1.16.1/go.mod h1:oB6AhJQvFQL4LEHyXi6aJzQJtBiTQHiAd83l0GdFaiw= go.opentelemetry.io/otel v1.29.0 h1:PdomN/Al4q/lN6iBJEN3AwPvUiHPMlt93c8bqTG5Llw= go.opentelemetry.io/otel v1.29.0/go.mod h1:N/WtXPs1CNCUEx+Agz5uouwCba+i+bJGFicT8SR4NP8= go.opentelemetry.io/otel/trace v1.29.0 h1:J/8ZNK4XgR7a21DZUAsbF8pZ5Jcw1VhACmnYt39JTi4= diff --git a/internal/app/feeder/feeder.go b/internal/app/feeder/feeder.go index 2c6978e..38eef25 100644 --- a/internal/app/feeder/feeder.go +++ b/internal/app/feeder/feeder.go @@ -13,9 +13,9 @@ import ( "github.com/nats-io/nats.go/jetstream" "github.com/prometheus/client_golang/prometheus" - "github.com/lidofinance/finding-forwarder/generated/databus" - "github.com/lidofinance/finding-forwarder/internal/connectors/metrics" - "github.com/lidofinance/finding-forwarder/internal/pkg/chain/entity" + "github.com/lidofinance/onchain-mon/generated/databus" + "github.com/lidofinance/onchain-mon/internal/connectors/metrics" + "github.com/lidofinance/onchain-mon/internal/pkg/chain/entity" ) type ChainSrv interface { diff --git a/internal/app/forwarder/forwarder.go b/internal/app/forwarder/forwarder.go index 4633fa2..48a55d9 100644 --- a/internal/app/forwarder/forwarder.go +++ b/internal/app/forwarder/forwarder.go @@ -17,10 +17,10 @@ import ( "github.com/prometheus/client_golang/prometheus" "golang.org/x/sync/errgroup" - "github.com/lidofinance/finding-forwarder/generated/databus" - "github.com/lidofinance/finding-forwarder/internal/connectors/metrics" - "github.com/lidofinance/finding-forwarder/internal/pkg/notifiler" - "github.com/lidofinance/finding-forwarder/internal/utils/registry" + "github.com/lidofinance/onchain-mon/generated/databus" + "github.com/lidofinance/onchain-mon/internal/connectors/metrics" + "github.com/lidofinance/onchain-mon/internal/pkg/notifiler" + "github.com/lidofinance/onchain-mon/internal/utils/registry" ) type carrier struct { diff --git a/internal/app/server/server.go b/internal/app/server/server.go index f26db20..2697824 100644 --- a/internal/app/server/server.go +++ b/internal/app/server/server.go @@ -16,9 +16,9 @@ import ( "github.com/prometheus/client_golang/prometheus/promhttp" slogchi "github.com/samber/slog-chi" - "github.com/lidofinance/finding-forwarder/internal/connectors/metrics" - "github.com/lidofinance/finding-forwarder/internal/env" - "github.com/lidofinance/finding-forwarder/internal/http/handlers/health" + "github.com/lidofinance/onchain-mon/internal/connectors/metrics" + "github.com/lidofinance/onchain-mon/internal/env" + "github.com/lidofinance/onchain-mon/internal/http/handlers/health" ) const ( diff --git a/internal/app/server/usecase.go b/internal/app/server/usecase.go index 3ccd9ff..364b393 100644 --- a/internal/app/server/usecase.go +++ b/internal/app/server/usecase.go @@ -4,11 +4,11 @@ import ( "net/http" "time" - "github.com/lidofinance/finding-forwarder/internal/app/feeder" - "github.com/lidofinance/finding-forwarder/internal/connectors/metrics" - "github.com/lidofinance/finding-forwarder/internal/env" - "github.com/lidofinance/finding-forwarder/internal/pkg/chain" - "github.com/lidofinance/finding-forwarder/internal/pkg/notifiler" + "github.com/lidofinance/onchain-mon/internal/app/feeder" + "github.com/lidofinance/onchain-mon/internal/connectors/metrics" + "github.com/lidofinance/onchain-mon/internal/env" + "github.com/lidofinance/onchain-mon/internal/pkg/chain" + "github.com/lidofinance/onchain-mon/internal/pkg/notifiler" ) type Services struct { diff --git a/internal/connectors/logger/logger.go b/internal/connectors/logger/logger.go index 4bad781..b2363a4 100644 --- a/internal/connectors/logger/logger.go +++ b/internal/connectors/logger/logger.go @@ -5,7 +5,7 @@ import ( "os" "strings" - "github.com/lidofinance/finding-forwarder/internal/env" + "github.com/lidofinance/onchain-mon/internal/env" ) func New(cfg *env.AppConfig) *slog.Logger { diff --git a/internal/connectors/nats/nats.go b/internal/connectors/nats/nats.go index 1844534..558be62 100644 --- a/internal/connectors/nats/nats.go +++ b/internal/connectors/nats/nats.go @@ -8,7 +8,7 @@ import ( "github.com/nats-io/nats.go" - "github.com/lidofinance/finding-forwarder/internal/env" + "github.com/lidofinance/onchain-mon/internal/env" ) var ( diff --git a/internal/pkg/chain/chain.go b/internal/pkg/chain/chain.go index 0fb805e..68a7954 100644 --- a/internal/pkg/chain/chain.go +++ b/internal/pkg/chain/chain.go @@ -13,8 +13,8 @@ import ( "github.com/google/uuid" "github.com/prometheus/client_golang/prometheus" - "github.com/lidofinance/finding-forwarder/internal/connectors/metrics" - "github.com/lidofinance/finding-forwarder/internal/pkg/chain/entity" + "github.com/lidofinance/onchain-mon/internal/connectors/metrics" + "github.com/lidofinance/onchain-mon/internal/pkg/chain/entity" ) type chain struct { diff --git a/internal/pkg/chain/chain_test.go b/internal/pkg/chain/chain_test.go index 038f558..cab6776 100644 --- a/internal/pkg/chain/chain_test.go +++ b/internal/pkg/chain/chain_test.go @@ -7,8 +7,8 @@ import ( "github.com/prometheus/client_golang/prometheus" - "github.com/lidofinance/finding-forwarder/internal/connectors/metrics" - "github.com/lidofinance/finding-forwarder/internal/env" + "github.com/lidofinance/onchain-mon/internal/connectors/metrics" + "github.com/lidofinance/onchain-mon/internal/env" ) func Test_chain_GetLatestBlock(t *testing.T) { diff --git a/internal/pkg/notifiler/contract.go b/internal/pkg/notifiler/contract.go index f6cce0a..600a02a 100644 --- a/internal/pkg/notifiler/contract.go +++ b/internal/pkg/notifiler/contract.go @@ -3,7 +3,7 @@ package notifiler import ( "context" - "github.com/lidofinance/finding-forwarder/generated/databus" + "github.com/lidofinance/onchain-mon/generated/databus" ) type FindingSender interface { diff --git a/internal/pkg/notifiler/discord.go b/internal/pkg/notifiler/discord.go index 2c02341..8c91ad6 100644 --- a/internal/pkg/notifiler/discord.go +++ b/internal/pkg/notifiler/discord.go @@ -10,8 +10,8 @@ import ( "github.com/prometheus/client_golang/prometheus" - "github.com/lidofinance/finding-forwarder/generated/databus" - "github.com/lidofinance/finding-forwarder/internal/connectors/metrics" + "github.com/lidofinance/onchain-mon/generated/databus" + "github.com/lidofinance/onchain-mon/internal/connectors/metrics" ) type discord struct { diff --git a/internal/pkg/notifiler/discord_test.go b/internal/pkg/notifiler/discord_test.go index 6e7b1da..55636a5 100644 --- a/internal/pkg/notifiler/discord_test.go +++ b/internal/pkg/notifiler/discord_test.go @@ -5,9 +5,9 @@ import ( "net/http" "testing" - "github.com/lidofinance/finding-forwarder/generated/databus" - "github.com/lidofinance/finding-forwarder/internal/connectors/metrics" - "github.com/lidofinance/finding-forwarder/internal/env" + "github.com/lidofinance/onchain-mon/generated/databus" + "github.com/lidofinance/onchain-mon/internal/connectors/metrics" + "github.com/lidofinance/onchain-mon/internal/env" "github.com/prometheus/client_golang/prometheus" ) diff --git a/internal/pkg/notifiler/format_alert.go b/internal/pkg/notifiler/format_alert.go index 4ce4eab..d15d405 100644 --- a/internal/pkg/notifiler/format_alert.go +++ b/internal/pkg/notifiler/format_alert.go @@ -5,7 +5,7 @@ import ( "strings" "time" - "github.com/lidofinance/finding-forwarder/generated/databus" + "github.com/lidofinance/onchain-mon/generated/databus" ) func FormatAlert(alert *databus.FindingDtoJson, source string) string { diff --git a/internal/pkg/notifiler/opsgenie.go b/internal/pkg/notifiler/opsgenie.go index af86639..d92f002 100644 --- a/internal/pkg/notifiler/opsgenie.go +++ b/internal/pkg/notifiler/opsgenie.go @@ -10,8 +10,8 @@ import ( "github.com/prometheus/client_golang/prometheus" - "github.com/lidofinance/finding-forwarder/generated/databus" - "github.com/lidofinance/finding-forwarder/internal/connectors/metrics" + "github.com/lidofinance/onchain-mon/generated/databus" + "github.com/lidofinance/onchain-mon/internal/connectors/metrics" ) type AlertPayload struct { diff --git a/internal/pkg/notifiler/opsgenie_test.go b/internal/pkg/notifiler/opsgenie_test.go index 1ccf13e..be52b19 100644 --- a/internal/pkg/notifiler/opsgenie_test.go +++ b/internal/pkg/notifiler/opsgenie_test.go @@ -5,9 +5,9 @@ import ( "net/http" "testing" - "github.com/lidofinance/finding-forwarder/generated/databus" - "github.com/lidofinance/finding-forwarder/internal/connectors/metrics" - "github.com/lidofinance/finding-forwarder/internal/env" + "github.com/lidofinance/onchain-mon/generated/databus" + "github.com/lidofinance/onchain-mon/internal/connectors/metrics" + "github.com/lidofinance/onchain-mon/internal/env" "github.com/prometheus/client_golang/prometheus" ) diff --git a/internal/pkg/notifiler/telegram.go b/internal/pkg/notifiler/telegram.go index 4e7a1f0..586329d 100644 --- a/internal/pkg/notifiler/telegram.go +++ b/internal/pkg/notifiler/telegram.go @@ -10,8 +10,8 @@ import ( "github.com/prometheus/client_golang/prometheus" - "github.com/lidofinance/finding-forwarder/generated/databus" - "github.com/lidofinance/finding-forwarder/internal/connectors/metrics" + "github.com/lidofinance/onchain-mon/generated/databus" + "github.com/lidofinance/onchain-mon/internal/connectors/metrics" ) type telegram struct { diff --git a/internal/pkg/notifiler/telegram_test.go b/internal/pkg/notifiler/telegram_test.go index f9df354..8179712 100644 --- a/internal/pkg/notifiler/telegram_test.go +++ b/internal/pkg/notifiler/telegram_test.go @@ -7,9 +7,9 @@ import ( "github.com/prometheus/client_golang/prometheus" - "github.com/lidofinance/finding-forwarder/generated/databus" - "github.com/lidofinance/finding-forwarder/internal/connectors/metrics" - "github.com/lidofinance/finding-forwarder/internal/env" + "github.com/lidofinance/onchain-mon/generated/databus" + "github.com/lidofinance/onchain-mon/internal/connectors/metrics" + "github.com/lidofinance/onchain-mon/internal/env" ) // Helper function to create pointers for strings diff --git a/internal/utils/registry/registry.go b/internal/utils/registry/registry.go index 624ea0b..c5909d4 100644 --- a/internal/utils/registry/registry.go +++ b/internal/utils/registry/registry.go @@ -1,8 +1,8 @@ package registry import ( - "github.com/lidofinance/finding-forwarder/generated/databus" - "github.com/lidofinance/finding-forwarder/internal/utils/registry/teams" + "github.com/lidofinance/onchain-mon/generated/databus" + "github.com/lidofinance/onchain-mon/internal/utils/registry/teams" ) const FallBackTeam = `default`