diff --git a/cmd/beacon/main.go b/cmd/beacon/main.go index b751409..cc3aee6 100644 --- a/cmd/beacon/main.go +++ b/cmd/beacon/main.go @@ -12,8 +12,8 @@ import ( "syscall" "github.com/pilot-protocol/beacon" - "github.com/TeoSlayer/pilotprotocol/pkg/config" - "github.com/TeoSlayer/pilotprotocol/pkg/logging" + "github.com/pilot-protocol/common/config" + "github.com/pilot-protocol/common/logging" ) func main() { diff --git a/go.mod b/go.mod index 0d35ca4..531bc95 100644 --- a/go.mod +++ b/go.mod @@ -3,12 +3,13 @@ module github.com/pilot-protocol/beacon go 1.25.10 require ( - github.com/TeoSlayer/pilotprotocol v0.0.0 github.com/coder/websocket v1.8.14 - github.com/pilot-protocol/common v0.1.0 + github.com/pilot-protocol/common v0.2.0 golang.org/x/net v0.55.0 ) require golang.org/x/sys v0.45.0 // indirect replace github.com/TeoSlayer/pilotprotocol => ../web4 + +replace github.com/pilot-protocol/common => ../common diff --git a/go.sum b/go.sum index b981195..b5e9323 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,5 @@ github.com/coder/websocket v1.8.14 h1:9L0p0iKiNOibykf283eHkKUHHrpG7f65OE3BhhO7v9g= github.com/coder/websocket v1.8.14/go.mod h1:NX3SzP+inril6yawo5CQXx8+fk145lPDC6pumgx0mVg= -github.com/pilot-protocol/common v0.1.0 h1:m8mZZATgeBiFoqhWXPnskw2u0lNkWxHp0IagZK35V1g= -github.com/pilot-protocol/common v0.1.0/go.mod h1:4YZWHK5nhM+4RLmYTspLxxAFbyBII7yzQDAHq3Ul2ck= golang.org/x/net v0.55.0 h1:bcvxaJn3e1U6InsFWt1JUq1aSjnRxLzT2rtD2KfkDF8= golang.org/x/net v0.55.0/go.mod h1:L5U2KuzuOe1lY7Z+aWVIKK6qEeJXnXV9yzGA+WCHJww= golang.org/x/sys v0.45.0 h1:dO4czNzziLiiXplLQgBCEpCvXQ3dnkn0SdaZSYdQ+FY= diff --git a/server.go b/server.go index dc6d86a..b8d9fa4 100644 --- a/server.go +++ b/server.go @@ -18,7 +18,7 @@ import ( "golang.org/x/net/ipv4" bwss "github.com/pilot-protocol/beacon/wss" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/protocol" ) // beaconNode tracks a node's observed endpoint and when it was last seen. diff --git a/server_test.go b/server_test.go index d5370a3..572ee6b 100644 --- a/server_test.go +++ b/server_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/protocol" ) // helper: send a discover message to register a node with a beacon diff --git a/zz_compat_wss_test.go b/zz_compat_wss_test.go index a636432..489439b 100644 --- a/zz_compat_wss_test.go +++ b/zz_compat_wss_test.go @@ -15,7 +15,7 @@ import ( "github.com/coder/websocket" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/protocol" "github.com/pilot-protocol/common/crypto" ) diff --git a/zz_fuzz_beacon_test.go b/zz_fuzz_beacon_test.go index bce44d5..3d94081 100644 --- a/zz_fuzz_beacon_test.go +++ b/zz_fuzz_beacon_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/protocol" "github.com/pilot-protocol/beacon" ) diff --git a/zz_fuzz_handle_packet_test.go b/zz_fuzz_handle_packet_test.go index a6e9d8d..7c1e728 100644 --- a/zz_fuzz_handle_packet_test.go +++ b/zz_fuzz_handle_packet_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/protocol" "github.com/pilot-protocol/beacon" ) diff --git a/zz_server_branches_test.go b/zz_server_branches_test.go index 5458f06..110f6fa 100644 --- a/zz_server_branches_test.go +++ b/zz_server_branches_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/protocol" ) // TestClose_DoneChannelIdempotent pins the `select` fallthrough