Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
864e400
go.mod: fix module path for v2 tags
nkryuchkov Mar 13, 2026
b7e88ab
ssvsigner: use root v2 pseudo-version
nkryuchkov Mar 13, 2026
73c2ea3
go.mod: use ssvsigner pseudo-version
nkryuchkov Mar 13, 2026
8cfeffa
go.sum: add ssvsigner pseudo-version checksums
nkryuchkov Mar 13, 2026
3bb3a16
Merge remote-tracking branch 'origin/stage' into fix-go-v2-module
nkryuchkov Mar 25, 2026
a69a068
fix test imports after stage merge
nkryuchkov Mar 25, 2026
f67968f
revert github url changes in comments
nkryuchkov Mar 25, 2026
de493ce
fix remaining github comment url
nkryuchkov Mar 25, 2026
b73085a
Merge remote-tracking branch 'origin/stage' into fix-go-v2-module
nkryuchkov Mar 26, 2026
398e030
Merge remote-tracking branch 'origin/stage' into fix-go-v2-module
nkryuchkov Mar 30, 2026
6c2315b
Merge remote-tracking branch 'origin/stage' into fix-go-v2-module
nkryuchkov Apr 10, 2026
518f541
update go.mod
nkryuchkov Apr 10, 2026
516c66a
Merge branch 'stage' of https://github.com/ssvlabs/ssv into fix-go-v2…
nkryuchkov Apr 14, 2026
3a05870
Merge branch 'stage' of https://github.com/ssvlabs/ssv into fix-go-v2…
nkryuchkov Apr 17, 2026
a96a084
Merge branch 'stage' of https://github.com/ssvlabs/ssv into fix-go-v2…
nkryuchkov Apr 20, 2026
6e01126
fix pre-v2 leftovers
nkryuchkov Apr 23, 2026
39a294a
Merge remote-tracking branch 'origin/stage' into fix-go-v2-module
nkryuchkov Apr 23, 2026
6ae6e6a
Merge remote-tracking branch 'origin/stage' into fix-go-v2-module
momosh-ssv May 8, 2026
7319df8
fix: rewrite stale ssv imports in stage-added files
momosh-ssv May 8, 2026
e9dfbeb
go.mod: tidy after stage merge
momosh-ssv May 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/dutytracer-bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
- name: Run benchmark
id: bench
run: |
go test -benchmem -run=^$ -bench ^BenchmarkTracer$ github.com/ssvlabs/ssv/operator/dutytracer -v
go test -benchmem -run=^$ -bench ^BenchmarkTracer$ github.com/ssvlabs/ssv/v2/operator/dutytracer -v

- name: Run eviction test
id: eviction
run: |
go test -tags lfs -timeout 5s -run ^TestEviction$ github.com/ssvlabs/ssv/operator/dutytracer -v
go test -tags lfs -timeout 5s -run ^TestEviction$ github.com/ssvlabs/ssv/v2/operator/dutytracer -v

- run: echo "🍏 This job's status is ${{ job.status }}."
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# SSV Node

[![API Reference](https://img.shields.io/badge/API%20Reference-blue)](https://pkg.go.dev/github.com/ssvlabs/ssv)
[![API Reference](https://img.shields.io/badge/API%20Reference-blue)](https://pkg.go.dev/github.com/ssvlabs/ssv/v2)
[![Github Actions](https://github.com/ssvlabs/ssv/actions/workflows/unit-test.yml/badge.svg?branch=main)](https://github.com/ssvlabs/ssv/actions/workflows/unit-test.yml)
[![Github Actions](https://github.com/ssvlabs/ssv/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/ssvlabs/ssv/actions/workflows/lint.yml)
[![Coverage Status](https://codecov.io/gh/ssvlabs/ssv/branch/main/graph/badge.svg)](https://codecov.io/gh/ssvlabs/ssv/tree/main)
Expand Down
2 changes: 1 addition & 1 deletion api/handlers/exporter/committee_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net/http"

"github.com/ssvlabs/ssv/api"
"github.com/ssvlabs/ssv/v2/api"
)

// CommitteeTraces godoc
Expand Down
6 changes: 3 additions & 3 deletions api/handlers/exporter/committee_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"github.com/hashicorp/go-multierror"
spectypes "github.com/ssvlabs/ssv-spec/types"

"github.com/ssvlabs/ssv/api"
"github.com/ssvlabs/ssv/exporter"
exporter2 "github.com/ssvlabs/ssv/exporter2"
"github.com/ssvlabs/ssv/v2/api"
"github.com/ssvlabs/ssv/v2/exporter"
exporter2 "github.com/ssvlabs/ssv/v2/exporter2"
)

type CommitteeIDLengthError struct {
Expand Down
4 changes: 2 additions & 2 deletions api/handlers/exporter/common_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

spectypes "github.com/ssvlabs/ssv-spec/types"

"github.com/ssvlabs/ssv/api"
"github.com/ssvlabs/ssv/exporter"
"github.com/ssvlabs/ssv/v2/api"
"github.com/ssvlabs/ssv/v2/exporter"
)

// Decided represents a decided message within a duty trace.
Expand Down
2 changes: 1 addition & 1 deletion api/handlers/exporter/decided_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net/http"

"github.com/ssvlabs/ssv/api"
"github.com/ssvlabs/ssv/v2/api"
)

// TraceDecideds godoc
Expand Down
6 changes: 3 additions & 3 deletions api/handlers/exporter/decided_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"github.com/hashicorp/go-multierror"
spectypes "github.com/ssvlabs/ssv-spec/types"

"github.com/ssvlabs/ssv/api"
exporter2 "github.com/ssvlabs/ssv/exporter2"
"github.com/ssvlabs/ssv/ibft/storage"
"github.com/ssvlabs/ssv/v2/api"
exporter2 "github.com/ssvlabs/ssv/v2/exporter2"
"github.com/ssvlabs/ssv/v2/ibft/storage"
)

type PubKeyLengthError struct {
Expand Down
2 changes: 1 addition & 1 deletion api/handlers/exporter/decided_v1_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package exporter
import (
"net/http"

"github.com/ssvlabs/ssv/api"
"github.com/ssvlabs/ssv/v2/api"
)

// Decideds is the backward-compatible handler for exporter-v1 "decideds" endpoint.
Expand Down
14 changes: 7 additions & 7 deletions api/handlers/exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import (
spectypes "github.com/ssvlabs/ssv-spec/types"
"go.uber.org/zap"

"github.com/ssvlabs/ssv/api"
"github.com/ssvlabs/ssv/exporter"
"github.com/ssvlabs/ssv/exporter/rolemask"
exporter2 "github.com/ssvlabs/ssv/exporter2"
ibftstorage "github.com/ssvlabs/ssv/ibft/storage"
registrystorage "github.com/ssvlabs/ssv/registry/storage"
"github.com/ssvlabs/ssv/v2/api"
"github.com/ssvlabs/ssv/v2/exporter"
"github.com/ssvlabs/ssv/v2/exporter/rolemask"
exporter2 "github.com/ssvlabs/ssv/v2/exporter2"
ibftstorage "github.com/ssvlabs/ssv/v2/ibft/storage"
registrystorage "github.com/ssvlabs/ssv/v2/registry/storage"

dutytracer "github.com/ssvlabs/ssv/operator/dutytracer"
dutytracer "github.com/ssvlabs/ssv/v2/operator/dutytracer"
)

type Exporter struct {
Expand Down
18 changes: 9 additions & 9 deletions api/handlers/exporter/exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ import (
"github.com/stretchr/testify/require"
"go.uber.org/zap"

"github.com/ssvlabs/ssv/api"
"github.com/ssvlabs/ssv/exporter"
"github.com/ssvlabs/ssv/exporter/rolemask"
estore "github.com/ssvlabs/ssv/exporter/store"
ibftstorage "github.com/ssvlabs/ssv/ibft/storage"
dutytracer "github.com/ssvlabs/ssv/operator/dutytracer"
"github.com/ssvlabs/ssv/operator/slotticker"
ssvtypes "github.com/ssvlabs/ssv/protocol/v2/types"
"github.com/ssvlabs/ssv/registry/storage"
"github.com/ssvlabs/ssv/v2/api"
"github.com/ssvlabs/ssv/v2/exporter"
"github.com/ssvlabs/ssv/v2/exporter/rolemask"
estore "github.com/ssvlabs/ssv/v2/exporter/store"
ibftstorage "github.com/ssvlabs/ssv/v2/ibft/storage"
dutytracer "github.com/ssvlabs/ssv/v2/operator/dutytracer"
"github.com/ssvlabs/ssv/v2/operator/slotticker"
ssvtypes "github.com/ssvlabs/ssv/v2/protocol/v2/types"
"github.com/ssvlabs/ssv/v2/registry/storage"
)

// mockParticipantStore is a basic mock for ibftstorage.ParticipantStore.
Expand Down
2 changes: 1 addition & 1 deletion api/handlers/exporter/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package exporter
import (
"errors"

"github.com/ssvlabs/ssv/exporter2"
"github.com/ssvlabs/ssv/v2/exporter2"
)

func isValidationError(err error) bool {
Expand Down
2 changes: 1 addition & 1 deletion api/handlers/exporter/validator_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package exporter
import (
"net/http"

"github.com/ssvlabs/ssv/api"
"github.com/ssvlabs/ssv/v2/api"
)

// ValidatorTraces godoc
Expand Down
6 changes: 3 additions & 3 deletions api/handlers/exporter/validator_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (

"github.com/hashicorp/go-multierror"

"github.com/ssvlabs/ssv/api"
"github.com/ssvlabs/ssv/exporter"
exporter2 "github.com/ssvlabs/ssv/exporter2"
"github.com/ssvlabs/ssv/v2/api"
"github.com/ssvlabs/ssv/v2/exporter"
exporter2 "github.com/ssvlabs/ssv/v2/exporter2"
)

// ValidatorTracesRequest represents the filter parameters accepted by the
Expand Down
4 changes: 2 additions & 2 deletions api/handlers/node/mock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"github.com/libp2p/go-libp2p/core/protocol"
ma "github.com/multiformats/go-multiaddr"

"github.com/ssvlabs/ssv/network/commons"
"github.com/ssvlabs/ssv/network/records"
"github.com/ssvlabs/ssv/v2/network/commons"
"github.com/ssvlabs/ssv/v2/network/records"
)

// MockP2PNetwork is a simple value-based mock implementation of p2pNetwork.
Expand Down
8 changes: 4 additions & 4 deletions api/handlers/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"github.com/libp2p/go-libp2p/core/peerstore"
ma "github.com/multiformats/go-multiaddr"

"github.com/ssvlabs/ssv/api"
"github.com/ssvlabs/ssv/hprobe"
"github.com/ssvlabs/ssv/network/commons"
"github.com/ssvlabs/ssv/network/records"
"github.com/ssvlabs/ssv/v2/api"
"github.com/ssvlabs/ssv/v2/hprobe"
"github.com/ssvlabs/ssv/v2/network/commons"
"github.com/ssvlabs/ssv/v2/network/records"
)

type Node struct {
Expand Down
8 changes: 4 additions & 4 deletions api/handlers/node/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import (
"github.com/stretchr/testify/require"
"go.uber.org/zap"

"github.com/ssvlabs/ssv/api"
"github.com/ssvlabs/ssv/hprobe"
"github.com/ssvlabs/ssv/network/commons"
"github.com/ssvlabs/ssv/network/records"
"github.com/ssvlabs/ssv/v2/api"
"github.com/ssvlabs/ssv/v2/hprobe"
"github.com/ssvlabs/ssv/v2/network/commons"
"github.com/ssvlabs/ssv/v2/network/records"
)

// CreateTestNode builds a test Node using a local network.
Expand Down
4 changes: 2 additions & 2 deletions api/handlers/validators/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/attestantio/go-eth2-client/spec/phase0"
spectypes "github.com/ssvlabs/ssv-spec/types"

"github.com/ssvlabs/ssv/api"
"github.com/ssvlabs/ssv/protocol/v2/types"
"github.com/ssvlabs/ssv/v2/api"
"github.com/ssvlabs/ssv/v2/protocol/v2/types"
)

// Clusters represents clusters of operator IDs.
Expand Down
6 changes: 3 additions & 3 deletions api/handlers/validators/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (

"github.com/attestantio/go-eth2-client/spec/phase0"

"github.com/ssvlabs/ssv/api"
"github.com/ssvlabs/ssv/protocol/v2/types"
registrystorage "github.com/ssvlabs/ssv/registry/storage"
"github.com/ssvlabs/ssv/v2/api"
"github.com/ssvlabs/ssv/v2/protocol/v2/types"
registrystorage "github.com/ssvlabs/ssv/v2/registry/storage"
)

type Validators struct {
Expand Down
10 changes: 5 additions & 5 deletions api/handlers/validators/validators_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ import (

spectypes "github.com/ssvlabs/ssv-spec/types"

"github.com/ssvlabs/ssv/api"
"github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon"
"github.com/ssvlabs/ssv/protocol/v2/types"
"github.com/ssvlabs/ssv/registry/storage"
"github.com/ssvlabs/ssv/storage/basedb"
"github.com/ssvlabs/ssv/v2/api"
"github.com/ssvlabs/ssv/v2/protocol/v2/blockchain/beacon"
"github.com/ssvlabs/ssv/v2/protocol/v2/types"
"github.com/ssvlabs/ssv/v2/registry/storage"
"github.com/ssvlabs/ssv/v2/storage/basedb"
)

// mockShare creates a SSVShare with the specified operator IDs.
Expand Down
10 changes: 5 additions & 5 deletions api/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
"github.com/go-chi/chi/v5/middleware"
"go.uber.org/zap"

"github.com/ssvlabs/ssv/api"
exporterHandlers "github.com/ssvlabs/ssv/api/handlers/exporter"
nodeHandlers "github.com/ssvlabs/ssv/api/handlers/node"
validatorsHandlers "github.com/ssvlabs/ssv/api/handlers/validators"
"github.com/ssvlabs/ssv/utils/commons"
"github.com/ssvlabs/ssv/v2/api"
exporterHandlers "github.com/ssvlabs/ssv/v2/api/handlers/exporter"
nodeHandlers "github.com/ssvlabs/ssv/v2/api/handlers/node"
validatorsHandlers "github.com/ssvlabs/ssv/v2/api/handlers/validators"
"github.com/ssvlabs/ssv/v2/utils/commons"
)

// Server represents the HTTP API server for SSV.
Expand Down
10 changes: 5 additions & 5 deletions api/server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ import (
"github.com/stretchr/testify/require"
"go.uber.org/zap/zaptest"

"github.com/ssvlabs/ssv/api"
hexporter "github.com/ssvlabs/ssv/api/handlers/exporter"
hnode "github.com/ssvlabs/ssv/api/handlers/node"
hvalidators "github.com/ssvlabs/ssv/api/handlers/validators"
"github.com/ssvlabs/ssv/utils/commons"
"github.com/ssvlabs/ssv/v2/api"
hexporter "github.com/ssvlabs/ssv/v2/api/handlers/exporter"
hnode "github.com/ssvlabs/ssv/v2/api/handlers/node"
hvalidators "github.com/ssvlabs/ssv/v2/api/handlers/validators"
"github.com/ssvlabs/ssv/v2/utils/commons"
)

// setupTestServer creates and configures a test HTTP server with mock handlers.
Expand Down
2 changes: 1 addition & 1 deletion api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

spectypes "github.com/ssvlabs/ssv-spec/types"

"github.com/ssvlabs/ssv/protocol/v2/message"
"github.com/ssvlabs/ssv/v2/protocol/v2/message"
)

type Hex []byte
Expand Down
2 changes: 1 addition & 1 deletion beacon/goclient/aggregator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/stretchr/testify/require"
"go.uber.org/zap"

"github.com/ssvlabs/ssv/networkconfig"
"github.com/ssvlabs/ssv/v2/networkconfig"
)

type aggregatorClientMock struct {
Expand Down
2 changes: 1 addition & 1 deletion beacon/goclient/attest.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/sourcegraph/conc/pool"
"go.uber.org/zap"

"github.com/ssvlabs/ssv/observability/log/fields"
"github.com/ssvlabs/ssv/v2/observability/log/fields"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion beacon/goclient/attest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/stretchr/testify/require"
"go.uber.org/zap"

"github.com/ssvlabs/ssv/utils/hashmap"
"github.com/ssvlabs/ssv/v2/utils/hashmap"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion beacon/goclient/committees_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/stretchr/testify/require"
"go.uber.org/zap"

"github.com/ssvlabs/ssv/networkconfig"
"github.com/ssvlabs/ssv/v2/networkconfig"
)

// committeeClientMock overrides BeaconCommittees to simplify instrumentation in tests.
Expand Down
2 changes: 1 addition & 1 deletion beacon/goclient/error_paths_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/stretchr/testify/require"
"go.uber.org/zap"

"github.com/ssvlabs/ssv/beacon/goclient/mocks"
"github.com/ssvlabs/ssv/v2/beacon/goclient/mocks"
)

func Test_specForClient_errorPaths(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion beacon/goclient/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/jellydator/ttlcache/v3"
"go.uber.org/zap"

"github.com/ssvlabs/ssv/observability/log/fields"
"github.com/ssvlabs/ssv/v2/observability/log/fields"
)

type eventTopic string
Expand Down
2 changes: 1 addition & 1 deletion beacon/goclient/events_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/stretchr/testify/require"
"go.uber.org/zap"

"github.com/ssvlabs/ssv/beacon/goclient/mocks"
"github.com/ssvlabs/ssv/v2/beacon/goclient/mocks"
)

func TestSubscribeToHeadEvents(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions beacon/goclient/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

"github.com/stretchr/testify/require"

"github.com/ssvlabs/ssv/beacon/goclient/mocks"
"github.com/ssvlabs/ssv/networkconfig"
"github.com/ssvlabs/ssv/observability/log"
"github.com/ssvlabs/ssv/v2/beacon/goclient/mocks"
"github.com/ssvlabs/ssv/v2/networkconfig"
"github.com/ssvlabs/ssv/v2/observability/log"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions beacon/goclient/goclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import (
"go.uber.org/zap"
"tailscale.com/util/singleflight"

"github.com/ssvlabs/ssv/networkconfig"
"github.com/ssvlabs/ssv/observability/log"
"github.com/ssvlabs/ssv/observability/log/fields"
"github.com/ssvlabs/ssv/utils/hashmap"
"github.com/ssvlabs/ssv/v2/networkconfig"
"github.com/ssvlabs/ssv/v2/observability/log"
"github.com/ssvlabs/ssv/v2/observability/log/fields"
"github.com/ssvlabs/ssv/v2/utils/hashmap"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion beacon/goclient/goclient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/stretchr/testify/require"
"go.uber.org/zap"

"github.com/ssvlabs/ssv/beacon/goclient/mocks"
"github.com/ssvlabs/ssv/v2/beacon/goclient/mocks"
)

func TestHealthy(t *testing.T) {
Expand Down
Loading