From 88c767e31696e88b115f7f12f5b296185bb46794 Mon Sep 17 00:00:00 2001 From: Jacob Elias Date: Thu, 22 Aug 2024 12:19:26 -0500 Subject: [PATCH] feat: update proxyd references to infra repo (#48) --- proxyd/backend.go | 2 +- proxyd/cmd/proxyd/main.go | 2 +- proxyd/go.mod | 2 +- proxyd/integration_tests/batch_timeout_test.go | 2 +- proxyd/integration_tests/batching_test.go | 2 +- .../block_height_zero_and_network_errors_test.go | 6 +++--- proxyd/integration_tests/caching_test.go | 2 +- proxyd/integration_tests/consensus_test.go | 4 ++-- proxyd/integration_tests/failover_test.go | 2 +- proxyd/integration_tests/fallback_test.go | 4 ++-- proxyd/integration_tests/max_rpc_conns_test.go | 2 +- proxyd/integration_tests/mock_backend_test.go | 2 +- proxyd/integration_tests/multicall_test.go | 4 ++-- proxyd/integration_tests/rate_limit_test.go | 2 +- proxyd/integration_tests/sender_rate_limit_test.go | 2 +- proxyd/integration_tests/smoke_test.go | 2 +- proxyd/integration_tests/util_test.go | 2 +- proxyd/integration_tests/validation_test.go | 2 +- proxyd/integration_tests/ws_test.go | 2 +- proxyd/tools/mockserver/handler/handler.go | 2 +- proxyd/tools/mockserver/main.go | 2 +- 21 files changed, 26 insertions(+), 26 deletions(-) diff --git a/proxyd/backend.go b/proxyd/backend.go index 3d0c62c..bba9e73 100644 --- a/proxyd/backend.go +++ b/proxyd/backend.go @@ -17,7 +17,7 @@ import ( "sync" "time" - sw "github.com/ethereum-optimism/optimism/proxyd/pkg/avg-sliding-window" + sw "github.com/ethereum-optimism/infra/proxyd/pkg/avg-sliding-window" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rpc" diff --git a/proxyd/cmd/proxyd/main.go b/proxyd/cmd/proxyd/main.go index c2b613c..ff635f5 100644 --- a/proxyd/cmd/proxyd/main.go +++ b/proxyd/cmd/proxyd/main.go @@ -16,7 +16,7 @@ import ( "github.com/ethereum/go-ethereum/log" - "github.com/ethereum-optimism/optimism/proxyd" + "github.com/ethereum-optimism/infra/proxyd" ) var ( diff --git a/proxyd/go.mod b/proxyd/go.mod index e6952af..d3011d2 100644 --- a/proxyd/go.mod +++ b/proxyd/go.mod @@ -1,4 +1,4 @@ -module github.com/ethereum-optimism/optimism/proxyd +module github.com/ethereum-optimism/infra/proxyd go 1.21 diff --git a/proxyd/integration_tests/batch_timeout_test.go b/proxyd/integration_tests/batch_timeout_test.go index 4906c1d..84a785c 100644 --- a/proxyd/integration_tests/batch_timeout_test.go +++ b/proxyd/integration_tests/batch_timeout_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/ethereum-optimism/optimism/proxyd" + "github.com/ethereum-optimism/infra/proxyd" "github.com/stretchr/testify/require" ) diff --git a/proxyd/integration_tests/batching_test.go b/proxyd/integration_tests/batching_test.go index af27307..8439460 100644 --- a/proxyd/integration_tests/batching_test.go +++ b/proxyd/integration_tests/batching_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/ethereum-optimism/optimism/proxyd" + "github.com/ethereum-optimism/infra/proxyd" "github.com/stretchr/testify/require" ) diff --git a/proxyd/integration_tests/block_height_zero_and_network_errors_test.go b/proxyd/integration_tests/block_height_zero_and_network_errors_test.go index 898413f..2f241fd 100644 --- a/proxyd/integration_tests/block_height_zero_and_network_errors_test.go +++ b/proxyd/integration_tests/block_height_zero_and_network_errors_test.go @@ -9,9 +9,9 @@ import ( "time" - "github.com/ethereum-optimism/optimism/proxyd" - sw "github.com/ethereum-optimism/optimism/proxyd/pkg/avg-sliding-window" - ms "github.com/ethereum-optimism/optimism/proxyd/tools/mockserver/handler" + "github.com/ethereum-optimism/infra/proxyd" + sw "github.com/ethereum-optimism/infra/proxyd/pkg/avg-sliding-window" + ms "github.com/ethereum-optimism/infra/proxyd/tools/mockserver/handler" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/stretchr/testify/require" ) diff --git a/proxyd/integration_tests/caching_test.go b/proxyd/integration_tests/caching_test.go index 283d600..cd88b03 100644 --- a/proxyd/integration_tests/caching_test.go +++ b/proxyd/integration_tests/caching_test.go @@ -8,7 +8,7 @@ import ( "time" "github.com/alicebob/miniredis" - "github.com/ethereum-optimism/optimism/proxyd" + "github.com/ethereum-optimism/infra/proxyd" "github.com/stretchr/testify/require" ) diff --git a/proxyd/integration_tests/consensus_test.go b/proxyd/integration_tests/consensus_test.go index 15256eb..00a7015 100644 --- a/proxyd/integration_tests/consensus_test.go +++ b/proxyd/integration_tests/consensus_test.go @@ -12,8 +12,8 @@ import ( "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum-optimism/optimism/proxyd" - ms "github.com/ethereum-optimism/optimism/proxyd/tools/mockserver/handler" + "github.com/ethereum-optimism/infra/proxyd" + ms "github.com/ethereum-optimism/infra/proxyd/tools/mockserver/handler" "github.com/stretchr/testify/require" ) diff --git a/proxyd/integration_tests/failover_test.go b/proxyd/integration_tests/failover_test.go index 78252ef..da95d0c 100644 --- a/proxyd/integration_tests/failover_test.go +++ b/proxyd/integration_tests/failover_test.go @@ -9,7 +9,7 @@ import ( "time" "github.com/alicebob/miniredis" - "github.com/ethereum-optimism/optimism/proxyd" + "github.com/ethereum-optimism/infra/proxyd" "github.com/stretchr/testify/require" ) diff --git a/proxyd/integration_tests/fallback_test.go b/proxyd/integration_tests/fallback_test.go index c4a1e4c..135a2b2 100644 --- a/proxyd/integration_tests/fallback_test.go +++ b/proxyd/integration_tests/fallback_test.go @@ -11,8 +11,8 @@ import ( "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum-optimism/optimism/proxyd" - ms "github.com/ethereum-optimism/optimism/proxyd/tools/mockserver/handler" + "github.com/ethereum-optimism/infra/proxyd" + ms "github.com/ethereum-optimism/infra/proxyd/tools/mockserver/handler" "github.com/stretchr/testify/require" ) diff --git a/proxyd/integration_tests/max_rpc_conns_test.go b/proxyd/integration_tests/max_rpc_conns_test.go index 5e23364..7543df1 100644 --- a/proxyd/integration_tests/max_rpc_conns_test.go +++ b/proxyd/integration_tests/max_rpc_conns_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/ethereum-optimism/optimism/proxyd" + "github.com/ethereum-optimism/infra/proxyd" "github.com/stretchr/testify/require" ) diff --git a/proxyd/integration_tests/mock_backend_test.go b/proxyd/integration_tests/mock_backend_test.go index bf45d03..f0eeeb6 100644 --- a/proxyd/integration_tests/mock_backend_test.go +++ b/proxyd/integration_tests/mock_backend_test.go @@ -10,7 +10,7 @@ import ( "strings" "sync" - "github.com/ethereum-optimism/optimism/proxyd" + "github.com/ethereum-optimism/infra/proxyd" "github.com/gorilla/websocket" ) diff --git a/proxyd/integration_tests/multicall_test.go b/proxyd/integration_tests/multicall_test.go index 196bd97..20b7fd0 100644 --- a/proxyd/integration_tests/multicall_test.go +++ b/proxyd/integration_tests/multicall_test.go @@ -12,8 +12,8 @@ import ( "testing" "time" - "github.com/ethereum-optimism/optimism/proxyd" - ms "github.com/ethereum-optimism/optimism/proxyd/tools/mockserver/handler" + "github.com/ethereum-optimism/infra/proxyd" + ms "github.com/ethereum-optimism/infra/proxyd/tools/mockserver/handler" "github.com/stretchr/testify/require" ) diff --git a/proxyd/integration_tests/rate_limit_test.go b/proxyd/integration_tests/rate_limit_test.go index 0801d05..19181dd 100644 --- a/proxyd/integration_tests/rate_limit_test.go +++ b/proxyd/integration_tests/rate_limit_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/ethereum-optimism/optimism/proxyd" + "github.com/ethereum-optimism/infra/proxyd" "github.com/stretchr/testify/require" ) diff --git a/proxyd/integration_tests/sender_rate_limit_test.go b/proxyd/integration_tests/sender_rate_limit_test.go index 20c5f0a..9818827 100644 --- a/proxyd/integration_tests/sender_rate_limit_test.go +++ b/proxyd/integration_tests/sender_rate_limit_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/ethereum-optimism/optimism/proxyd" + "github.com/ethereum-optimism/infra/proxyd" "github.com/stretchr/testify/require" ) diff --git a/proxyd/integration_tests/smoke_test.go b/proxyd/integration_tests/smoke_test.go index 5fed757..c733986 100644 --- a/proxyd/integration_tests/smoke_test.go +++ b/proxyd/integration_tests/smoke_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "github.com/ethereum-optimism/optimism/proxyd" + "github.com/ethereum-optimism/infra/proxyd" "github.com/ethereum/go-ethereum/log" "github.com/stretchr/testify/require" ) diff --git a/proxyd/integration_tests/util_test.go b/proxyd/integration_tests/util_test.go index 36edce1..0216277 100644 --- a/proxyd/integration_tests/util_test.go +++ b/proxyd/integration_tests/util_test.go @@ -17,7 +17,7 @@ import ( "github.com/ethereum/go-ethereum/log" - "github.com/ethereum-optimism/optimism/proxyd" + "github.com/ethereum-optimism/infra/proxyd" ) type ProxydHTTPClient struct { diff --git a/proxyd/integration_tests/validation_test.go b/proxyd/integration_tests/validation_test.go index 95cfc29..8ab619a 100644 --- a/proxyd/integration_tests/validation_test.go +++ b/proxyd/integration_tests/validation_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "github.com/ethereum-optimism/optimism/proxyd" + "github.com/ethereum-optimism/infra/proxyd" "github.com/stretchr/testify/require" ) diff --git a/proxyd/integration_tests/ws_test.go b/proxyd/integration_tests/ws_test.go index d52cfab..ac47278 100644 --- a/proxyd/integration_tests/ws_test.go +++ b/proxyd/integration_tests/ws_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/ethereum-optimism/optimism/proxyd" + "github.com/ethereum-optimism/infra/proxyd" "github.com/gorilla/websocket" "github.com/stretchr/testify/require" ) diff --git a/proxyd/tools/mockserver/handler/handler.go b/proxyd/tools/mockserver/handler/handler.go index ef0af26..1f8f387 100644 --- a/proxyd/tools/mockserver/handler/handler.go +++ b/proxyd/tools/mockserver/handler/handler.go @@ -8,7 +8,7 @@ import ( "os" "strings" - "github.com/ethereum-optimism/optimism/proxyd" + "github.com/ethereum-optimism/infra/proxyd" "github.com/gorilla/mux" "github.com/pkg/errors" diff --git a/proxyd/tools/mockserver/main.go b/proxyd/tools/mockserver/main.go index a58fc06..7ce9dfd 100644 --- a/proxyd/tools/mockserver/main.go +++ b/proxyd/tools/mockserver/main.go @@ -6,7 +6,7 @@ import ( "path" "strconv" - "github.com/ethereum-optimism/optimism/proxyd/tools/mockserver/handler" + "github.com/ethereum-optimism/infra/proxyd/tools/mockserver/handler" ) func main() {