Skip to content

Commit

Permalink
Run gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraglia committed Apr 29, 2024
1 parent 696b8fe commit b2c3e1e
Show file tree
Hide file tree
Showing 77 changed files with 97 additions and 47 deletions.
2 changes: 1 addition & 1 deletion api/v1/attesterduty_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"testing"

api "github.com/attestantio/go-eth2-client/api/v1"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestAttesterDutyJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/beaconblockheader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"testing"

api "github.com/attestantio/go-eth2-client/api/v1"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestBeaconBlockHeaderJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/beaconcommittee_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"testing"

api "github.com/attestantio/go-eth2-client/api/v1"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestBeaconCommitteeJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/beaconcommitteesubscription_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"testing"

api "github.com/attestantio/go-eth2-client/api/v1"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestBeaconCommitteeSubscriptionJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/blockevent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"testing"

api "github.com/attestantio/go-eth2-client/api/v1"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestBlockEventJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/capella/blindedbeaconblock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (

"github.com/attestantio/go-eth2-client/api/v1/capella"
"github.com/goccy/go-yaml"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestBlindedBeaconBlockJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/capella/signedblindedbeaconblock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (

"github.com/attestantio/go-eth2-client/api/v1/capella"
"github.com/goccy/go-yaml"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestSignedBlindedBeaconBlockJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/chainreorgevent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"testing"

api "github.com/attestantio/go-eth2-client/api/v1"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestChainReorgEventJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/depositcontract_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"testing"

api "github.com/attestantio/go-eth2-client/api/v1"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestDepositContractJSON(t *testing.T) {
Expand Down
1 change: 1 addition & 0 deletions api/v1/electra/blindedbeaconblockbody.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ package electra

import (
"fmt"

"github.com/attestantio/go-eth2-client/spec/deneb"
"github.com/attestantio/go-eth2-client/spec/electra"

Expand Down
3 changes: 2 additions & 1 deletion api/v1/electra/blindedbeaconblockbody_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ import (
"encoding/hex"
"encoding/json"
"fmt"
"github.com/attestantio/go-eth2-client/spec/electra"
"strings"

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

"github.com/attestantio/go-eth2-client/spec/altair"
"github.com/attestantio/go-eth2-client/spec/capella"
"github.com/attestantio/go-eth2-client/spec/deneb"
Expand Down
1 change: 1 addition & 0 deletions api/v1/electra/blindedbeaconblockbody_yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package electra
import (
"bytes"
"fmt"

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

"github.com/attestantio/go-eth2-client/spec/altair"
Expand Down
1 change: 1 addition & 0 deletions api/v1/electra/blockcontents.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ package electra

import (
"fmt"

"github.com/attestantio/go-eth2-client/spec/deneb"
"github.com/attestantio/go-eth2-client/spec/electra"

Expand Down
1 change: 1 addition & 0 deletions api/v1/electra/blockcontents_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ package electra

import (
"encoding/json"

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

"github.com/attestantio/go-eth2-client/codecs"
Expand Down
1 change: 1 addition & 0 deletions api/v1/electra/blockcontents_yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package electra
import (
"bytes"
"encoding/json"

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

"github.com/attestantio/go-eth2-client/spec/deneb"
Expand Down
1 change: 1 addition & 0 deletions api/v1/electra/signedblockcontents.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ package electra

import (
"fmt"

"github.com/attestantio/go-eth2-client/spec/deneb"
"github.com/attestantio/go-eth2-client/spec/electra"

Expand Down
1 change: 1 addition & 0 deletions api/v1/electra/signedblockcontents_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ package electra

import (
"encoding/json"

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

"github.com/attestantio/go-eth2-client/codecs"
Expand Down
1 change: 1 addition & 0 deletions api/v1/electra/signedblockcontents_yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package electra
import (
"bytes"
"encoding/json"

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

"github.com/attestantio/go-eth2-client/spec/deneb"
Expand Down
2 changes: 1 addition & 1 deletion api/v1/event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"testing"

api "github.com/attestantio/go-eth2-client/api/v1"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestEvent(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/finality_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"testing"

api "github.com/attestantio/go-eth2-client/api/v1"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestFinalityJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/finalizedcheckpointevent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"testing"

api "github.com/attestantio/go-eth2-client/api/v1"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestFinalizedCheckpointEventJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"testing"

api "github.com/attestantio/go-eth2-client/api/v1"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestGenesisJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/headevent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"testing"

api "github.com/attestantio/go-eth2-client/api/v1"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestHeadEventJSON(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion api/v1/payloadattributesevent.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"encoding/hex"
"encoding/json"
"fmt"
"github.com/attestantio/go-eth2-client/spec/electra"
"strconv"
"strings"

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

"github.com/attestantio/go-eth2-client/spec"
"github.com/attestantio/go-eth2-client/spec/bellatrix"
"github.com/attestantio/go-eth2-client/spec/capella"
Expand Down
2 changes: 1 addition & 1 deletion api/v1/proposalpreparation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"testing"

api "github.com/attestantio/go-eth2-client/api/v1"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestProposalPreparationJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/proposerduty_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"testing"

api "github.com/attestantio/go-eth2-client/api/v1"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestProposerDutyJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/signedvalidatorregistration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (

api "github.com/attestantio/go-eth2-client/api/v1"
"github.com/goccy/go-yaml"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestSignedValidatorRegistrationJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/synccommittee_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"testing"

api "github.com/attestantio/go-eth2-client/api/v1"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestSyncCommitteeJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/synccommitteeduty_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"testing"

api "github.com/attestantio/go-eth2-client/api/v1"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestSyncCommitteeDutyJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/synccommitteesubscription_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"testing"

api "github.com/attestantio/go-eth2-client/api/v1"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestSyncCommitteeSubscriptionJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/syncstate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"testing"

api "github.com/attestantio/go-eth2-client/api/v1"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestSyncStateJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"testing"

api "github.com/attestantio/go-eth2-client/api/v1"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestValidatorJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/validatorbalance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"testing"

api "github.com/attestantio/go-eth2-client/api/v1"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestValidatorBalanceJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/validatorregistration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (

api "github.com/attestantio/go-eth2-client/api/v1"
"github.com/goccy/go-yaml"
require "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
require "github.com/stretchr/testify/require"
)

func TestValidatorRegistrationJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/validatorstate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ func TestMarshalJSON(t *testing.T) {
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
require.NotPanics(t, func() {
res, err := json.Marshal(&test.state) //test.state.MarshalJSON()
res, err := json.Marshal(&test.state) // test.state.MarshalJSON()
test.errFunc(t, err)
require.Equal(t, test.expected, res)
})
Expand Down
3 changes: 2 additions & 1 deletion api/versionedproposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
package api

import (
apiv1electra "github.com/attestantio/go-eth2-client/api/v1/electra"
"math/big"

apiv1electra "github.com/attestantio/go-eth2-client/api/v1/electra"

apiv1bellatrix "github.com/attestantio/go-eth2-client/api/v1/bellatrix"
apiv1capella "github.com/attestantio/go-eth2-client/api/v1/capella"
apiv1deneb "github.com/attestantio/go-eth2-client/api/v1/deneb"
Expand Down
3 changes: 2 additions & 1 deletion api/versionedsignedproposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ package api

import (
"errors"
apiv1electra "github.com/attestantio/go-eth2-client/api/v1/electra"
"math/big"

apiv1electra "github.com/attestantio/go-eth2-client/api/v1/electra"

apiv1bellatrix "github.com/attestantio/go-eth2-client/api/v1/bellatrix"
apiv1capella "github.com/attestantio/go-eth2-client/api/v1/capella"
apiv1deneb "github.com/attestantio/go-eth2-client/api/v1/deneb"
Expand Down
1 change: 1 addition & 0 deletions http/beaconstate.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"context"
"errors"
"fmt"

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

client "github.com/attestantio/go-eth2-client"
Expand Down
1 change: 1 addition & 0 deletions http/blindedproposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"context"
"errors"
"fmt"

apiv1electra "github.com/attestantio/go-eth2-client/api/v1/electra"

client "github.com/attestantio/go-eth2-client"
Expand Down
3 changes: 2 additions & 1 deletion http/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ import (
"context"
"errors"
"fmt"
apiv1electra "github.com/attestantio/go-eth2-client/api/v1/electra"
"math/big"
"strings"

apiv1electra "github.com/attestantio/go-eth2-client/api/v1/electra"

client "github.com/attestantio/go-eth2-client"
"github.com/attestantio/go-eth2-client/api"
apiv1bellatrix "github.com/attestantio/go-eth2-client/api/v1/bellatrix"
Expand Down
1 change: 1 addition & 0 deletions http/signedbeaconblock.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"context"
"errors"
"fmt"

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

client "github.com/attestantio/go-eth2-client"
Expand Down
Loading

0 comments on commit b2c3e1e

Please sign in to comment.