From ece6fce9993684d80abf7bc776d79cc24624d6b6 Mon Sep 17 00:00:00 2001 From: Sean McGary Date: Mon, 9 Sep 2024 12:48:02 -0500 Subject: [PATCH] Fix go mod naming --- cmd/sidecar/main.go | 40 +++++++++---------- go.mod | 2 +- internal/clients/etherscan/client.go | 2 +- internal/contractCaller/contractCaller.go | 2 +- internal/contractManager/contractManager.go | 10 ++--- .../sqliteContractStore.go | 6 +-- .../sqliteContractStore_test.go | 10 ++--- .../eigenState/avsOperators/avsOperators.go | 12 +++--- .../avsOperators/avsOperators_test.go | 12 +++--- internal/eigenState/base/baseEigenState.go | 4 +- internal/eigenState/eigenstate_test.go | 14 +++---- .../operatorShares/operatorShares.go | 12 +++--- .../operatorShares/operatorShares_test.go | 12 +++--- .../stakerDelegations/stakerDelegations.go | 12 +++--- .../stakerDelegations_test.go | 12 +++--- .../eigenState/stakerShares/stakerShares.go | 12 +++--- .../stakerShares/stakerShares_test.go | 12 +++--- .../eigenState/stateManager/stateManager.go | 6 +-- .../stateManager/stateManager_test.go | 10 ++--- internal/eigenState/types/types.go | 2 +- internal/fetcher/fetcher.go | 4 +- internal/indexer/indexer.go | 16 ++++---- internal/indexer/transactionLogs.go | 6 +-- internal/parser/parser.go | 2 +- internal/pipeline/pipeline.go | 8 ++-- .../pipeline/pipeline_integration_test.go | 34 ++++++++-------- internal/rpcServer/handlers.go | 2 +- internal/rpcServer/server.go | 6 +-- internal/sidecar/sidecar.go | 12 +++--- internal/sqlite/migrations/migrator.go | 12 +++--- internal/storage/sqlite/sqlite_test.go | 12 +++--- internal/storage/sqlite/storage.go | 6 +-- internal/storage/storage.go | 2 +- internal/tests/utils.go | 4 +- protos/eigenlayer/sidecar/v1/api.proto | 2 +- 35 files changed, 166 insertions(+), 166 deletions(-) diff --git a/cmd/sidecar/main.go b/cmd/sidecar/main.go index 14aee726..66f9a1ba 100644 --- a/cmd/sidecar/main.go +++ b/cmd/sidecar/main.go @@ -3,26 +3,26 @@ package main import ( "context" "fmt" - "github.com/Layr-Labs/sidecar/internal/clients/ethereum" - "github.com/Layr-Labs/sidecar/internal/clients/etherscan" - "github.com/Layr-Labs/sidecar/internal/config" - "github.com/Layr-Labs/sidecar/internal/contractManager" - "github.com/Layr-Labs/sidecar/internal/contractStore/sqliteContractStore" - "github.com/Layr-Labs/sidecar/internal/eigenState/avsOperators" - "github.com/Layr-Labs/sidecar/internal/eigenState/operatorShares" - "github.com/Layr-Labs/sidecar/internal/eigenState/stakerDelegations" - "github.com/Layr-Labs/sidecar/internal/eigenState/stakerShares" - "github.com/Layr-Labs/sidecar/internal/eigenState/stateManager" - "github.com/Layr-Labs/sidecar/internal/fetcher" - "github.com/Layr-Labs/sidecar/internal/indexer" - "github.com/Layr-Labs/sidecar/internal/logger" - "github.com/Layr-Labs/sidecar/internal/metrics" - "github.com/Layr-Labs/sidecar/internal/pipeline" - "github.com/Layr-Labs/sidecar/internal/shutdown" - "github.com/Layr-Labs/sidecar/internal/sidecar" - "github.com/Layr-Labs/sidecar/internal/sqlite" - "github.com/Layr-Labs/sidecar/internal/sqlite/migrations" - sqliteBlockStore "github.com/Layr-Labs/sidecar/internal/storage/sqlite" + "github.com/Layr-Labs/go-sidecar/internal/clients/ethereum" + "github.com/Layr-Labs/go-sidecar/internal/clients/etherscan" + "github.com/Layr-Labs/go-sidecar/internal/config" + "github.com/Layr-Labs/go-sidecar/internal/contractManager" + "github.com/Layr-Labs/go-sidecar/internal/contractStore/sqliteContractStore" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/avsOperators" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/operatorShares" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/stakerDelegations" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/stakerShares" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/stateManager" + "github.com/Layr-Labs/go-sidecar/internal/fetcher" + "github.com/Layr-Labs/go-sidecar/internal/indexer" + "github.com/Layr-Labs/go-sidecar/internal/logger" + "github.com/Layr-Labs/go-sidecar/internal/metrics" + "github.com/Layr-Labs/go-sidecar/internal/pipeline" + "github.com/Layr-Labs/go-sidecar/internal/shutdown" + "github.com/Layr-Labs/go-sidecar/internal/sidecar" + "github.com/Layr-Labs/go-sidecar/internal/sqlite" + "github.com/Layr-Labs/go-sidecar/internal/sqlite/migrations" + sqliteBlockStore "github.com/Layr-Labs/go-sidecar/internal/storage/sqlite" "go.uber.org/zap" "log" "time" diff --git a/go.mod b/go.mod index 747fa283..2f98fef6 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/Layr-Labs/sidecar +module github.com/Layr-Labs/go-sidecar go 1.22.2 diff --git a/internal/clients/etherscan/client.go b/internal/clients/etherscan/client.go index 4937d1ca..7796c3f7 100644 --- a/internal/clients/etherscan/client.go +++ b/internal/clients/etherscan/client.go @@ -3,7 +3,7 @@ package etherscan import ( "encoding/json" "fmt" - "github.com/Layr-Labs/sidecar/internal/config" + "github.com/Layr-Labs/go-sidecar/internal/config" "go.uber.org/zap" "io" "math/rand/v2" diff --git a/internal/contractCaller/contractCaller.go b/internal/contractCaller/contractCaller.go index f781f688..f088c1ff 100644 --- a/internal/contractCaller/contractCaller.go +++ b/internal/contractCaller/contractCaller.go @@ -3,7 +3,7 @@ package contractCaller import ( "context" "fmt" - "github.com/Layr-Labs/sidecar/internal/clients/ethereum" + "github.com/Layr-Labs/go-sidecar/internal/clients/ethereum" "github.com/ethereum/go-ethereum/accounts/abi" "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/common" diff --git a/internal/contractManager/contractManager.go b/internal/contractManager/contractManager.go index 16e45509..4589d30a 100644 --- a/internal/contractManager/contractManager.go +++ b/internal/contractManager/contractManager.go @@ -4,11 +4,11 @@ import ( "context" "fmt" "github.com/DataDog/datadog-go/v5/statsd" - "github.com/Layr-Labs/sidecar/internal/clients/ethereum" - "github.com/Layr-Labs/sidecar/internal/clients/etherscan" - "github.com/Layr-Labs/sidecar/internal/contractStore" - "github.com/Layr-Labs/sidecar/internal/metrics" - "github.com/Layr-Labs/sidecar/internal/utils" + "github.com/Layr-Labs/go-sidecar/internal/clients/ethereum" + "github.com/Layr-Labs/go-sidecar/internal/clients/etherscan" + "github.com/Layr-Labs/go-sidecar/internal/contractStore" + "github.com/Layr-Labs/go-sidecar/internal/metrics" + "github.com/Layr-Labs/go-sidecar/internal/utils" "go.uber.org/zap" ) diff --git a/internal/contractStore/sqliteContractStore/sqliteContractStore.go b/internal/contractStore/sqliteContractStore/sqliteContractStore.go index fe09dc91..6e7a5f7e 100644 --- a/internal/contractStore/sqliteContractStore/sqliteContractStore.go +++ b/internal/contractStore/sqliteContractStore/sqliteContractStore.go @@ -5,9 +5,9 @@ import ( "encoding/json" "errors" "fmt" - "github.com/Layr-Labs/sidecar/internal/config" - "github.com/Layr-Labs/sidecar/internal/contractStore" - "github.com/Layr-Labs/sidecar/internal/sqlite" + "github.com/Layr-Labs/go-sidecar/internal/config" + "github.com/Layr-Labs/go-sidecar/internal/contractStore" + "github.com/Layr-Labs/go-sidecar/internal/sqlite" "go.uber.org/zap" "golang.org/x/xerrors" "gorm.io/gorm" diff --git a/internal/contractStore/sqliteContractStore/sqliteContractStore_test.go b/internal/contractStore/sqliteContractStore/sqliteContractStore_test.go index 5854b3d6..94fae8e8 100644 --- a/internal/contractStore/sqliteContractStore/sqliteContractStore_test.go +++ b/internal/contractStore/sqliteContractStore/sqliteContractStore_test.go @@ -1,11 +1,11 @@ package sqliteContractStore import ( - "github.com/Layr-Labs/sidecar/internal/config" - "github.com/Layr-Labs/sidecar/internal/contractStore" - "github.com/Layr-Labs/sidecar/internal/logger" - "github.com/Layr-Labs/sidecar/internal/sqlite/migrations" - "github.com/Layr-Labs/sidecar/internal/tests" + "github.com/Layr-Labs/go-sidecar/internal/config" + "github.com/Layr-Labs/go-sidecar/internal/contractStore" + "github.com/Layr-Labs/go-sidecar/internal/logger" + "github.com/Layr-Labs/go-sidecar/internal/sqlite/migrations" + "github.com/Layr-Labs/go-sidecar/internal/tests" "github.com/stretchr/testify/assert" "go.uber.org/zap" "gorm.io/gorm" diff --git a/internal/eigenState/avsOperators/avsOperators.go b/internal/eigenState/avsOperators/avsOperators.go index cc6f0a97..b1832d99 100644 --- a/internal/eigenState/avsOperators/avsOperators.go +++ b/internal/eigenState/avsOperators/avsOperators.go @@ -3,12 +3,12 @@ package avsOperators import ( "database/sql" "fmt" - "github.com/Layr-Labs/sidecar/internal/config" - "github.com/Layr-Labs/sidecar/internal/eigenState/base" - "github.com/Layr-Labs/sidecar/internal/eigenState/stateManager" - "github.com/Layr-Labs/sidecar/internal/eigenState/types" - "github.com/Layr-Labs/sidecar/internal/storage" - "github.com/Layr-Labs/sidecar/internal/utils" + "github.com/Layr-Labs/go-sidecar/internal/config" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/base" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/stateManager" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/types" + "github.com/Layr-Labs/go-sidecar/internal/storage" + "github.com/Layr-Labs/go-sidecar/internal/utils" "github.com/wealdtech/go-merkletree/v2" "github.com/wealdtech/go-merkletree/v2/keccak256" orderedmap "github.com/wk8/go-ordered-map/v2" diff --git a/internal/eigenState/avsOperators/avsOperators_test.go b/internal/eigenState/avsOperators/avsOperators_test.go index 080ea803..8738352c 100644 --- a/internal/eigenState/avsOperators/avsOperators_test.go +++ b/internal/eigenState/avsOperators/avsOperators_test.go @@ -2,12 +2,12 @@ package avsOperators import ( "database/sql" - "github.com/Layr-Labs/sidecar/internal/config" - "github.com/Layr-Labs/sidecar/internal/eigenState/stateManager" - "github.com/Layr-Labs/sidecar/internal/logger" - "github.com/Layr-Labs/sidecar/internal/sqlite/migrations" - "github.com/Layr-Labs/sidecar/internal/storage" - "github.com/Layr-Labs/sidecar/internal/tests" + "github.com/Layr-Labs/go-sidecar/internal/config" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/stateManager" + "github.com/Layr-Labs/go-sidecar/internal/logger" + "github.com/Layr-Labs/go-sidecar/internal/sqlite/migrations" + "github.com/Layr-Labs/go-sidecar/internal/storage" + "github.com/Layr-Labs/go-sidecar/internal/tests" "github.com/stretchr/testify/assert" "go.uber.org/zap" "gorm.io/gorm" diff --git a/internal/eigenState/base/baseEigenState.go b/internal/eigenState/base/baseEigenState.go index 41eea18c..050d8038 100644 --- a/internal/eigenState/base/baseEigenState.go +++ b/internal/eigenState/base/baseEigenState.go @@ -3,8 +3,8 @@ package base import ( "encoding/json" "fmt" - "github.com/Layr-Labs/sidecar/internal/parser" - "github.com/Layr-Labs/sidecar/internal/storage" + "github.com/Layr-Labs/go-sidecar/internal/parser" + "github.com/Layr-Labs/go-sidecar/internal/storage" "go.uber.org/zap" "slices" "strings" diff --git a/internal/eigenState/eigenstate_test.go b/internal/eigenState/eigenstate_test.go index d29078e9..92e894e1 100644 --- a/internal/eigenState/eigenstate_test.go +++ b/internal/eigenState/eigenstate_test.go @@ -1,13 +1,13 @@ package eigenState import ( - "github.com/Layr-Labs/sidecar/internal/config" - "github.com/Layr-Labs/sidecar/internal/eigenState/avsOperators" - "github.com/Layr-Labs/sidecar/internal/eigenState/operatorShares" - "github.com/Layr-Labs/sidecar/internal/eigenState/stateManager" - "github.com/Layr-Labs/sidecar/internal/logger" - "github.com/Layr-Labs/sidecar/internal/sqlite/migrations" - "github.com/Layr-Labs/sidecar/internal/tests" + "github.com/Layr-Labs/go-sidecar/internal/config" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/avsOperators" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/operatorShares" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/stateManager" + "github.com/Layr-Labs/go-sidecar/internal/logger" + "github.com/Layr-Labs/go-sidecar/internal/sqlite/migrations" + "github.com/Layr-Labs/go-sidecar/internal/tests" "github.com/stretchr/testify/assert" "go.uber.org/zap" "gorm.io/gorm" diff --git a/internal/eigenState/operatorShares/operatorShares.go b/internal/eigenState/operatorShares/operatorShares.go index 0073fcf0..d4ea664b 100644 --- a/internal/eigenState/operatorShares/operatorShares.go +++ b/internal/eigenState/operatorShares/operatorShares.go @@ -4,12 +4,12 @@ import ( "database/sql" "encoding/json" "fmt" - "github.com/Layr-Labs/sidecar/internal/config" - "github.com/Layr-Labs/sidecar/internal/eigenState/base" - "github.com/Layr-Labs/sidecar/internal/eigenState/stateManager" - "github.com/Layr-Labs/sidecar/internal/eigenState/types" - "github.com/Layr-Labs/sidecar/internal/storage" - "github.com/Layr-Labs/sidecar/internal/utils" + "github.com/Layr-Labs/go-sidecar/internal/config" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/base" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/stateManager" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/types" + "github.com/Layr-Labs/go-sidecar/internal/storage" + "github.com/Layr-Labs/go-sidecar/internal/utils" "github.com/holiman/uint256" "github.com/wealdtech/go-merkletree/v2" "github.com/wealdtech/go-merkletree/v2/keccak256" diff --git a/internal/eigenState/operatorShares/operatorShares_test.go b/internal/eigenState/operatorShares/operatorShares_test.go index 3d43c478..8e18a4db 100644 --- a/internal/eigenState/operatorShares/operatorShares_test.go +++ b/internal/eigenState/operatorShares/operatorShares_test.go @@ -3,12 +3,12 @@ package operatorShares import ( "database/sql" "fmt" - "github.com/Layr-Labs/sidecar/internal/config" - "github.com/Layr-Labs/sidecar/internal/eigenState/stateManager" - "github.com/Layr-Labs/sidecar/internal/logger" - "github.com/Layr-Labs/sidecar/internal/sqlite/migrations" - "github.com/Layr-Labs/sidecar/internal/storage" - "github.com/Layr-Labs/sidecar/internal/tests" + "github.com/Layr-Labs/go-sidecar/internal/config" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/stateManager" + "github.com/Layr-Labs/go-sidecar/internal/logger" + "github.com/Layr-Labs/go-sidecar/internal/sqlite/migrations" + "github.com/Layr-Labs/go-sidecar/internal/storage" + "github.com/Layr-Labs/go-sidecar/internal/tests" "github.com/stretchr/testify/assert" "go.uber.org/zap" "gorm.io/gorm" diff --git a/internal/eigenState/stakerDelegations/stakerDelegations.go b/internal/eigenState/stakerDelegations/stakerDelegations.go index 181154be..29201e24 100644 --- a/internal/eigenState/stakerDelegations/stakerDelegations.go +++ b/internal/eigenState/stakerDelegations/stakerDelegations.go @@ -3,12 +3,12 @@ package stakerDelegations import ( "database/sql" "fmt" - "github.com/Layr-Labs/sidecar/internal/config" - "github.com/Layr-Labs/sidecar/internal/eigenState/base" - "github.com/Layr-Labs/sidecar/internal/eigenState/stateManager" - "github.com/Layr-Labs/sidecar/internal/eigenState/types" - "github.com/Layr-Labs/sidecar/internal/storage" - "github.com/Layr-Labs/sidecar/internal/utils" + "github.com/Layr-Labs/go-sidecar/internal/config" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/base" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/stateManager" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/types" + "github.com/Layr-Labs/go-sidecar/internal/storage" + "github.com/Layr-Labs/go-sidecar/internal/utils" "github.com/wealdtech/go-merkletree/v2" "github.com/wealdtech/go-merkletree/v2/keccak256" orderedmap "github.com/wk8/go-ordered-map/v2" diff --git a/internal/eigenState/stakerDelegations/stakerDelegations_test.go b/internal/eigenState/stakerDelegations/stakerDelegations_test.go index 11bf8654..9e6c5aed 100644 --- a/internal/eigenState/stakerDelegations/stakerDelegations_test.go +++ b/internal/eigenState/stakerDelegations/stakerDelegations_test.go @@ -2,12 +2,12 @@ package stakerDelegations import ( "database/sql" - "github.com/Layr-Labs/sidecar/internal/config" - "github.com/Layr-Labs/sidecar/internal/eigenState/stateManager" - "github.com/Layr-Labs/sidecar/internal/logger" - "github.com/Layr-Labs/sidecar/internal/sqlite/migrations" - "github.com/Layr-Labs/sidecar/internal/storage" - "github.com/Layr-Labs/sidecar/internal/tests" + "github.com/Layr-Labs/go-sidecar/internal/config" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/stateManager" + "github.com/Layr-Labs/go-sidecar/internal/logger" + "github.com/Layr-Labs/go-sidecar/internal/sqlite/migrations" + "github.com/Layr-Labs/go-sidecar/internal/storage" + "github.com/Layr-Labs/go-sidecar/internal/tests" "github.com/stretchr/testify/assert" "go.uber.org/zap" "gorm.io/gorm" diff --git a/internal/eigenState/stakerShares/stakerShares.go b/internal/eigenState/stakerShares/stakerShares.go index 5ed9dcf2..97e18266 100644 --- a/internal/eigenState/stakerShares/stakerShares.go +++ b/internal/eigenState/stakerShares/stakerShares.go @@ -4,12 +4,12 @@ import ( "database/sql" "encoding/json" "fmt" - "github.com/Layr-Labs/sidecar/internal/config" - "github.com/Layr-Labs/sidecar/internal/eigenState/base" - "github.com/Layr-Labs/sidecar/internal/eigenState/stateManager" - "github.com/Layr-Labs/sidecar/internal/eigenState/types" - "github.com/Layr-Labs/sidecar/internal/storage" - "github.com/Layr-Labs/sidecar/internal/utils" + "github.com/Layr-Labs/go-sidecar/internal/config" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/base" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/stateManager" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/types" + "github.com/Layr-Labs/go-sidecar/internal/storage" + "github.com/Layr-Labs/go-sidecar/internal/utils" "github.com/holiman/uint256" "github.com/wealdtech/go-merkletree/v2" "github.com/wealdtech/go-merkletree/v2/keccak256" diff --git a/internal/eigenState/stakerShares/stakerShares_test.go b/internal/eigenState/stakerShares/stakerShares_test.go index 12bcf716..ec2487fb 100644 --- a/internal/eigenState/stakerShares/stakerShares_test.go +++ b/internal/eigenState/stakerShares/stakerShares_test.go @@ -1,12 +1,12 @@ package stakerShares import ( - "github.com/Layr-Labs/sidecar/internal/config" - "github.com/Layr-Labs/sidecar/internal/eigenState/stateManager" - "github.com/Layr-Labs/sidecar/internal/logger" - "github.com/Layr-Labs/sidecar/internal/sqlite/migrations" - "github.com/Layr-Labs/sidecar/internal/storage" - "github.com/Layr-Labs/sidecar/internal/tests" + "github.com/Layr-Labs/go-sidecar/internal/config" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/stateManager" + "github.com/Layr-Labs/go-sidecar/internal/logger" + "github.com/Layr-Labs/go-sidecar/internal/sqlite/migrations" + "github.com/Layr-Labs/go-sidecar/internal/storage" + "github.com/Layr-Labs/go-sidecar/internal/tests" "github.com/holiman/uint256" "github.com/stretchr/testify/assert" "go.uber.org/zap" diff --git a/internal/eigenState/stateManager/stateManager.go b/internal/eigenState/stateManager/stateManager.go index 33cf8066..9e95c4c1 100644 --- a/internal/eigenState/stateManager/stateManager.go +++ b/internal/eigenState/stateManager/stateManager.go @@ -2,9 +2,9 @@ package stateManager import ( "fmt" - "github.com/Layr-Labs/sidecar/internal/eigenState/types" - "github.com/Layr-Labs/sidecar/internal/storage" - "github.com/Layr-Labs/sidecar/internal/utils" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/types" + "github.com/Layr-Labs/go-sidecar/internal/storage" + "github.com/Layr-Labs/go-sidecar/internal/utils" "github.com/wealdtech/go-merkletree/v2" "github.com/wealdtech/go-merkletree/v2/keccak256" "go.uber.org/zap" diff --git a/internal/eigenState/stateManager/stateManager_test.go b/internal/eigenState/stateManager/stateManager_test.go index 4d65a7da..d63a9351 100644 --- a/internal/eigenState/stateManager/stateManager_test.go +++ b/internal/eigenState/stateManager/stateManager_test.go @@ -1,11 +1,11 @@ package stateManager import ( - "github.com/Layr-Labs/sidecar/internal/config" - "github.com/Layr-Labs/sidecar/internal/eigenState/types" - "github.com/Layr-Labs/sidecar/internal/logger" - "github.com/Layr-Labs/sidecar/internal/sqlite/migrations" - "github.com/Layr-Labs/sidecar/internal/tests" + "github.com/Layr-Labs/go-sidecar/internal/config" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/types" + "github.com/Layr-Labs/go-sidecar/internal/logger" + "github.com/Layr-Labs/go-sidecar/internal/sqlite/migrations" + "github.com/Layr-Labs/go-sidecar/internal/tests" "github.com/stretchr/testify/assert" "go.uber.org/zap" "gorm.io/gorm" diff --git a/internal/eigenState/types/types.go b/internal/eigenState/types/types.go index b369f761..cc46bba2 100644 --- a/internal/eigenState/types/types.go +++ b/internal/eigenState/types/types.go @@ -1,7 +1,7 @@ package types import ( - "github.com/Layr-Labs/sidecar/internal/storage" + "github.com/Layr-Labs/go-sidecar/internal/storage" ) type StateRoot string diff --git a/internal/fetcher/fetcher.go b/internal/fetcher/fetcher.go index 0ec23117..eff8dae0 100644 --- a/internal/fetcher/fetcher.go +++ b/internal/fetcher/fetcher.go @@ -2,8 +2,8 @@ package fetcher import ( "context" - "github.com/Layr-Labs/sidecar/internal/clients/ethereum" - "github.com/Layr-Labs/sidecar/internal/config" + "github.com/Layr-Labs/go-sidecar/internal/clients/ethereum" + "github.com/Layr-Labs/go-sidecar/internal/config" "github.com/ethereum/go-ethereum/common/hexutil" "go.uber.org/zap" "slices" diff --git a/internal/indexer/indexer.go b/internal/indexer/indexer.go index 39496e3e..6d4a7792 100644 --- a/internal/indexer/indexer.go +++ b/internal/indexer/indexer.go @@ -3,14 +3,14 @@ package indexer import ( "context" "fmt" - "github.com/Layr-Labs/sidecar/internal/clients/ethereum" - "github.com/Layr-Labs/sidecar/internal/clients/etherscan" - "github.com/Layr-Labs/sidecar/internal/config" - "github.com/Layr-Labs/sidecar/internal/contractManager" - "github.com/Layr-Labs/sidecar/internal/contractStore" - "github.com/Layr-Labs/sidecar/internal/fetcher" - "github.com/Layr-Labs/sidecar/internal/parser" - "github.com/Layr-Labs/sidecar/internal/storage" + "github.com/Layr-Labs/go-sidecar/internal/clients/ethereum" + "github.com/Layr-Labs/go-sidecar/internal/clients/etherscan" + "github.com/Layr-Labs/go-sidecar/internal/config" + "github.com/Layr-Labs/go-sidecar/internal/contractManager" + "github.com/Layr-Labs/go-sidecar/internal/contractStore" + "github.com/Layr-Labs/go-sidecar/internal/fetcher" + "github.com/Layr-Labs/go-sidecar/internal/parser" + "github.com/Layr-Labs/go-sidecar/internal/storage" "go.uber.org/zap" "golang.org/x/xerrors" "slices" diff --git a/internal/indexer/transactionLogs.go b/internal/indexer/transactionLogs.go index 8b6a3c90..56024fc6 100644 --- a/internal/indexer/transactionLogs.go +++ b/internal/indexer/transactionLogs.go @@ -6,9 +6,9 @@ import ( "encoding/json" "errors" "fmt" - "github.com/Layr-Labs/sidecar/internal/clients/ethereum" - "github.com/Layr-Labs/sidecar/internal/parser" - "github.com/Layr-Labs/sidecar/internal/utils" + "github.com/Layr-Labs/go-sidecar/internal/clients/ethereum" + "github.com/Layr-Labs/go-sidecar/internal/parser" + "github.com/Layr-Labs/go-sidecar/internal/utils" "github.com/ethereum/go-ethereum/accounts/abi" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" diff --git a/internal/parser/parser.go b/internal/parser/parser.go index 31d30936..675ed8bc 100644 --- a/internal/parser/parser.go +++ b/internal/parser/parser.go @@ -1,6 +1,6 @@ package parser -import "github.com/Layr-Labs/sidecar/internal/clients/ethereum" +import "github.com/Layr-Labs/go-sidecar/internal/clients/ethereum" type ParsedTransaction struct { MethodName string diff --git a/internal/pipeline/pipeline.go b/internal/pipeline/pipeline.go index 163cb3ba..9d1d7559 100644 --- a/internal/pipeline/pipeline.go +++ b/internal/pipeline/pipeline.go @@ -2,10 +2,10 @@ package pipeline import ( "context" - "github.com/Layr-Labs/sidecar/internal/eigenState/stateManager" - "github.com/Layr-Labs/sidecar/internal/fetcher" - "github.com/Layr-Labs/sidecar/internal/indexer" - "github.com/Layr-Labs/sidecar/internal/storage" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/stateManager" + "github.com/Layr-Labs/go-sidecar/internal/fetcher" + "github.com/Layr-Labs/go-sidecar/internal/indexer" + "github.com/Layr-Labs/go-sidecar/internal/storage" "go.uber.org/zap" ) diff --git a/internal/pipeline/pipeline_integration_test.go b/internal/pipeline/pipeline_integration_test.go index 419d7840..36874bc7 100644 --- a/internal/pipeline/pipeline_integration_test.go +++ b/internal/pipeline/pipeline_integration_test.go @@ -4,23 +4,23 @@ import ( "context" "database/sql" "fmt" - "github.com/Layr-Labs/sidecar/internal/clients/ethereum" - "github.com/Layr-Labs/sidecar/internal/clients/etherscan" - "github.com/Layr-Labs/sidecar/internal/contractManager" - "github.com/Layr-Labs/sidecar/internal/contractStore/sqliteContractStore" - "github.com/Layr-Labs/sidecar/internal/eigenState/avsOperators" - "github.com/Layr-Labs/sidecar/internal/eigenState/operatorShares" - "github.com/Layr-Labs/sidecar/internal/eigenState/stakerDelegations" - "github.com/Layr-Labs/sidecar/internal/eigenState/stakerShares" - "github.com/Layr-Labs/sidecar/internal/eigenState/stateManager" - "github.com/Layr-Labs/sidecar/internal/fetcher" - "github.com/Layr-Labs/sidecar/internal/indexer" - "github.com/Layr-Labs/sidecar/internal/logger" - "github.com/Layr-Labs/sidecar/internal/metrics" - "github.com/Layr-Labs/sidecar/internal/sqlite/migrations" - "github.com/Layr-Labs/sidecar/internal/storage" - sqliteBlockStore "github.com/Layr-Labs/sidecar/internal/storage/sqlite" - "github.com/Layr-Labs/sidecar/internal/tests" + "github.com/Layr-Labs/go-sidecar/internal/clients/ethereum" + "github.com/Layr-Labs/go-sidecar/internal/clients/etherscan" + "github.com/Layr-Labs/go-sidecar/internal/contractManager" + "github.com/Layr-Labs/go-sidecar/internal/contractStore/sqliteContractStore" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/avsOperators" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/operatorShares" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/stakerDelegations" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/stakerShares" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/stateManager" + "github.com/Layr-Labs/go-sidecar/internal/fetcher" + "github.com/Layr-Labs/go-sidecar/internal/indexer" + "github.com/Layr-Labs/go-sidecar/internal/logger" + "github.com/Layr-Labs/go-sidecar/internal/metrics" + "github.com/Layr-Labs/go-sidecar/internal/sqlite/migrations" + "github.com/Layr-Labs/go-sidecar/internal/storage" + sqliteBlockStore "github.com/Layr-Labs/go-sidecar/internal/storage/sqlite" + "github.com/Layr-Labs/go-sidecar/internal/tests" "github.com/stretchr/testify/assert" "go.uber.org/zap" "gorm.io/gorm" diff --git a/internal/rpcServer/handlers.go b/internal/rpcServer/handlers.go index dfcebb63..d49c28e8 100644 --- a/internal/rpcServer/handlers.go +++ b/internal/rpcServer/handlers.go @@ -2,7 +2,7 @@ package rpcServer import ( "context" - v1 "github.com/Layr-Labs/sidecar/protos/eigenlayer/sidecar/v1" + v1 "github.com/Layr-Labs/go-sidecar/protos/eigenlayer/sidecar/v1" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) diff --git a/internal/rpcServer/server.go b/internal/rpcServer/server.go index 6c1cf7b7..824dbb14 100644 --- a/internal/rpcServer/server.go +++ b/internal/rpcServer/server.go @@ -2,9 +2,9 @@ package rpcServer import ( "context" - "github.com/Layr-Labs/sidecar/internal/eigenState/stateManager" - "github.com/Layr-Labs/sidecar/internal/storage" - v1 "github.com/Layr-Labs/sidecar/protos/eigenlayer/sidecar/v1" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/stateManager" + "github.com/Layr-Labs/go-sidecar/internal/storage" + v1 "github.com/Layr-Labs/go-sidecar/protos/eigenlayer/sidecar/v1" "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" "go.uber.org/zap" "google.golang.org/grpc" diff --git a/internal/sidecar/sidecar.go b/internal/sidecar/sidecar.go index 4fe81853..688855e1 100644 --- a/internal/sidecar/sidecar.go +++ b/internal/sidecar/sidecar.go @@ -4,12 +4,12 @@ import ( "context" "errors" "fmt" - "github.com/Layr-Labs/sidecar/internal/clients/ethereum" - "github.com/Layr-Labs/sidecar/internal/config" - "github.com/Layr-Labs/sidecar/internal/eigenState/stateManager" - "github.com/Layr-Labs/sidecar/internal/pipeline" - "github.com/Layr-Labs/sidecar/internal/rpcServer" - "github.com/Layr-Labs/sidecar/internal/storage" + "github.com/Layr-Labs/go-sidecar/internal/clients/ethereum" + "github.com/Layr-Labs/go-sidecar/internal/config" + "github.com/Layr-Labs/go-sidecar/internal/eigenState/stateManager" + "github.com/Layr-Labs/go-sidecar/internal/pipeline" + "github.com/Layr-Labs/go-sidecar/internal/rpcServer" + "github.com/Layr-Labs/go-sidecar/internal/storage" grpc_zap "github.com/grpc-ecosystem/go-grpc-middleware/logging/zap" grpc_ctxtags "github.com/grpc-ecosystem/go-grpc-middleware/tags" "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" diff --git a/internal/sqlite/migrations/migrator.go b/internal/sqlite/migrations/migrator.go index 54ab59f1..a915a9cc 100644 --- a/internal/sqlite/migrations/migrator.go +++ b/internal/sqlite/migrations/migrator.go @@ -3,12 +3,12 @@ package migrations import ( "database/sql" "fmt" - _202409061249_bootstrapDb "github.com/Layr-Labs/sidecar/internal/sqlite/migrations/202409061249_bootstrapDb" - _202409061250_eigenlayerStateTables "github.com/Layr-Labs/sidecar/internal/sqlite/migrations/202409061250_eigenlayerStateTables" - _202409061720_operatorShareChanges "github.com/Layr-Labs/sidecar/internal/sqlite/migrations/202409061720_operatorShareChanges" - _202409062151_stakerDelegations "github.com/Layr-Labs/sidecar/internal/sqlite/migrations/202409062151_stakerDelegations" - _202409080918_staterootTable "github.com/Layr-Labs/sidecar/internal/sqlite/migrations/202409080918_staterootTable" - _202409082234_stakerShares "github.com/Layr-Labs/sidecar/internal/sqlite/migrations/202409082234_stakerShares" + _202409061249_bootstrapDb "github.com/Layr-Labs/go-sidecar/internal/sqlite/migrations/202409061249_bootstrapDb" + _202409061250_eigenlayerStateTables "github.com/Layr-Labs/go-sidecar/internal/sqlite/migrations/202409061250_eigenlayerStateTables" + _202409061720_operatorShareChanges "github.com/Layr-Labs/go-sidecar/internal/sqlite/migrations/202409061720_operatorShareChanges" + _202409062151_stakerDelegations "github.com/Layr-Labs/go-sidecar/internal/sqlite/migrations/202409062151_stakerDelegations" + _202409080918_staterootTable "github.com/Layr-Labs/go-sidecar/internal/sqlite/migrations/202409080918_staterootTable" + _202409082234_stakerShares "github.com/Layr-Labs/go-sidecar/internal/sqlite/migrations/202409082234_stakerShares" "go.uber.org/zap" "gorm.io/gorm" "time" diff --git a/internal/storage/sqlite/sqlite_test.go b/internal/storage/sqlite/sqlite_test.go index 6c88b8c5..90dd3467 100644 --- a/internal/storage/sqlite/sqlite_test.go +++ b/internal/storage/sqlite/sqlite_test.go @@ -2,12 +2,12 @@ package sqlite import ( "encoding/json" - "github.com/Layr-Labs/sidecar/internal/config" - "github.com/Layr-Labs/sidecar/internal/logger" - "github.com/Layr-Labs/sidecar/internal/parser" - "github.com/Layr-Labs/sidecar/internal/sqlite/migrations" - "github.com/Layr-Labs/sidecar/internal/storage" - "github.com/Layr-Labs/sidecar/internal/tests" + "github.com/Layr-Labs/go-sidecar/internal/config" + "github.com/Layr-Labs/go-sidecar/internal/logger" + "github.com/Layr-Labs/go-sidecar/internal/parser" + "github.com/Layr-Labs/go-sidecar/internal/sqlite/migrations" + "github.com/Layr-Labs/go-sidecar/internal/storage" + "github.com/Layr-Labs/go-sidecar/internal/tests" "github.com/stretchr/testify/assert" "go.uber.org/zap" "gorm.io/gorm" diff --git a/internal/storage/sqlite/storage.go b/internal/storage/sqlite/storage.go index 67c224c8..05fbbe0d 100644 --- a/internal/storage/sqlite/storage.go +++ b/internal/storage/sqlite/storage.go @@ -4,9 +4,9 @@ import ( "encoding/json" "errors" "fmt" - "github.com/Layr-Labs/sidecar/internal/config" - "github.com/Layr-Labs/sidecar/internal/parser" - "github.com/Layr-Labs/sidecar/internal/storage" + "github.com/Layr-Labs/go-sidecar/internal/config" + "github.com/Layr-Labs/go-sidecar/internal/parser" + "github.com/Layr-Labs/go-sidecar/internal/storage" "go.uber.org/zap" "golang.org/x/xerrors" "gorm.io/gorm" diff --git a/internal/storage/storage.go b/internal/storage/storage.go index 03a1d857..688f7d3e 100644 --- a/internal/storage/storage.go +++ b/internal/storage/storage.go @@ -1,7 +1,7 @@ package storage import ( - "github.com/Layr-Labs/sidecar/internal/parser" + "github.com/Layr-Labs/go-sidecar/internal/parser" "time" ) diff --git a/internal/tests/utils.go b/internal/tests/utils.go index 7b5380ee..73170f2e 100644 --- a/internal/tests/utils.go +++ b/internal/tests/utils.go @@ -1,8 +1,8 @@ package tests import ( - "github.com/Layr-Labs/sidecar/internal/config" - sqlite2 "github.com/Layr-Labs/sidecar/internal/sqlite" + "github.com/Layr-Labs/go-sidecar/internal/config" + sqlite2 "github.com/Layr-Labs/go-sidecar/internal/sqlite" "gorm.io/gorm" ) diff --git a/protos/eigenlayer/sidecar/v1/api.proto b/protos/eigenlayer/sidecar/v1/api.proto index e2071fa9..88c1cc22 100644 --- a/protos/eigenlayer/sidecar/v1/api.proto +++ b/protos/eigenlayer/sidecar/v1/api.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package eigenlayer.sidecar.api.v1; -option go_package = "github.com/Layr-Labs/sidecar/protos/eigenlayer/api/v1"; +option go_package = "github.com/Layr-Labs/go-sidecar/protos/eigenlayer/api/v1"; import "google/api/annotations.proto";