Skip to content
This repository was archived by the owner on May 11, 2024. It is now read-only.

Commit 8fefdeb

Browse files
mask-ppdavidtaikocha
authored andcommitted
chore(goimport): fix goimport order (#740)
1 parent 9ffb107 commit 8fefdeb

29 files changed

+35
-5
lines changed

.golangci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ linters-settings:
6060
goconst:
6161
min-len: 3
6262
min-occurrences: 6
63+
goimports:
64+
local-prefixes: github.com/taikoxyz/taiko-client
6365

6466
severity:
6567
# Set the default severity for issues.

Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ clean:
1313
@rm -rf bin/*
1414

1515
lint:
16-
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.56.2 \
16+
@go install golang.org/x/tools/cmd/goimports@latest \
17+
&& go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.56.2 \
18+
&& goimports -local "github.com/taikoxyz/taiko-client" -w ./ \
1719
&& golangci-lint run
1820

1921
test:

cmd/logger/logger.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import (
44
"os"
55

66
"github.com/ethereum/go-ethereum/log"
7-
"github.com/taikoxyz/taiko-client/cmd/flags"
87
"github.com/urfave/cli/v2"
8+
9+
"github.com/taikoxyz/taiko-client/cmd/flags"
910
)
1011

1112
// InitLogger initializes the root logger with the command line flags.

driver/chain_syncer/blob/syncer.go

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616
"github.com/ethereum/go-ethereum/core/types"
1717
"github.com/ethereum/go-ethereum/log"
1818
"github.com/ethereum/go-ethereum/rlp"
19+
1920
"github.com/taikoxyz/taiko-client/bindings"
2021
"github.com/taikoxyz/taiko-client/bindings/encoding"
2122
"github.com/taikoxyz/taiko-client/driver/chain_syncer/beaconsync"

driver/driver.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ import (
1313
"github.com/ethereum/go-ethereum/core/types"
1414
"github.com/ethereum/go-ethereum/event"
1515
"github.com/ethereum/go-ethereum/log"
16+
"github.com/urfave/cli/v2"
1617

1718
chainSyncer "github.com/taikoxyz/taiko-client/driver/chain_syncer"
1819
"github.com/taikoxyz/taiko-client/driver/state"
1920
"github.com/taikoxyz/taiko-client/pkg/rpc"
20-
"github.com/urfave/cli/v2"
2121
)
2222

2323
const (

driver/txlist_fetcher/calldata.go

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55

66
"github.com/ethereum/go-ethereum/core/types"
7+
78
"github.com/taikoxyz/taiko-client/bindings"
89
"github.com/taikoxyz/taiko-client/bindings/encoding"
910
"github.com/taikoxyz/taiko-client/pkg"

driver/txlist_fetcher/interface.go

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55

66
"github.com/ethereum/go-ethereum/core/types"
7+
78
"github.com/taikoxyz/taiko-client/bindings"
89
)
910

internal/utils/util_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66

77
"github.com/ethereum/go-ethereum/params"
88
"github.com/stretchr/testify/require"
9+
910
"github.com/taikoxyz/taiko-client/internal/testutils"
1011
"github.com/taikoxyz/taiko-client/internal/utils"
1112
)

pkg/flags/config.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ import (
66
"github.com/ethereum-optimism/optimism/op-service/txmgr"
77
"github.com/ethereum/go-ethereum/common"
88
"github.com/ethereum/go-ethereum/crypto"
9-
"github.com/taikoxyz/taiko-client/cmd/flags"
109
"github.com/urfave/cli/v2"
10+
11+
"github.com/taikoxyz/taiko-client/cmd/flags"
1112
)
1213

1314
// InitTxmgrConfigsFromCli initializes the transaction manager configs from the command line flags.

pkg/rpc/blob_datasource.go

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"github.com/ethereum/go-ethereum/log"
1010
"github.com/go-resty/resty/v2"
1111
"github.com/prysmaticlabs/prysm/v4/beacon-chain/rpc/eth/blob"
12+
1213
"github.com/taikoxyz/taiko-client/bindings"
1314
"github.com/taikoxyz/taiko-client/pkg"
1415
)

pkg/rpc/client.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"github.com/cenkalti/backoff/v4"
99
"github.com/ethereum/go-ethereum/common"
1010
"github.com/ethereum/go-ethereum/log"
11+
1112
"github.com/taikoxyz/taiko-client/bindings"
1213
)
1314

pkg/rpc/methods_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"github.com/ethereum/go-ethereum/common"
1010
"github.com/ethereum/go-ethereum/crypto"
1111
"github.com/stretchr/testify/require"
12+
1213
"github.com/taikoxyz/taiko-client/bindings/encoding"
1314
)
1415

pkg/rpc/subscription_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"github.com/ethereum/go-ethereum/core/types"
88
"github.com/ethereum/go-ethereum/event"
99
"github.com/stretchr/testify/require"
10+
1011
"github.com/taikoxyz/taiko-client/bindings"
1112
)
1213

proposer/proposer.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ import (
1717
"github.com/ethereum/go-ethereum/log"
1818
"github.com/ethereum/go-ethereum/rlp"
1919

20+
"github.com/urfave/cli/v2"
21+
2022
"github.com/taikoxyz/taiko-client/bindings"
2123
"github.com/taikoxyz/taiko-client/bindings/encoding"
2224
"github.com/taikoxyz/taiko-client/internal/metrics"
2325
"github.com/taikoxyz/taiko-client/internal/utils"
2426
"github.com/taikoxyz/taiko-client/pkg/rpc"
2527
selector "github.com/taikoxyz/taiko-client/proposer/prover_selector"
2628
builder "github.com/taikoxyz/taiko-client/proposer/transaction_builder"
27-
"github.com/urfave/cli/v2"
2829
)
2930

3031
var (

proposer/transaction_builder/blob.go

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"github.com/ethereum/go-ethereum/common"
1212
"github.com/ethereum/go-ethereum/crypto"
1313
"github.com/ethereum/go-ethereum/crypto/kzg4844"
14+
1415
"github.com/taikoxyz/taiko-client/bindings/encoding"
1516
"github.com/taikoxyz/taiko-client/pkg/rpc"
1617
selector "github.com/taikoxyz/taiko-client/proposer/prover_selector"

proposer/transaction_builder/calldata_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55

66
"github.com/ethereum/go-ethereum/common"
7+
78
"github.com/taikoxyz/taiko-client/bindings/encoding"
89
)
910

proposer/transaction_builder/common.go

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66

77
"github.com/ethereum/go-ethereum/accounts/abi/bind"
88
"github.com/ethereum/go-ethereum/common"
9+
910
"github.com/taikoxyz/taiko-client/pkg/rpc"
1011
)
1112

proposer/transaction_builder/interface.go

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55

66
"github.com/ethereum-optimism/optimism/op-service/txmgr"
7+
78
"github.com/taikoxyz/taiko-client/bindings/encoding"
89
)
910

prover/event_handler/assignment_expired.go

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66

77
"github.com/ethereum/go-ethereum/common"
88
"github.com/ethereum/go-ethereum/log"
9+
910
"github.com/taikoxyz/taiko-client/bindings"
1011
"github.com/taikoxyz/taiko-client/pkg/rpc"
1112
proofProducer "github.com/taikoxyz/taiko-client/prover/proof_producer"

prover/event_handler/block_proposed_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
state "github.com/taikoxyz/taiko-client/prover/shared_state"
99

1010
"github.com/ethereum/go-ethereum/common"
11+
1112
"github.com/taikoxyz/taiko-client/bindings"
1213
)
1314

prover/event_handler/block_verified.go

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package handler
33
import (
44
"github.com/ethereum/go-ethereum/common"
55
"github.com/ethereum/go-ethereum/log"
6+
67
"github.com/taikoxyz/taiko-client/bindings"
78
"github.com/taikoxyz/taiko-client/internal/metrics"
89
)

prover/event_handler/block_verified_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package handler
22

33
import (
44
"github.com/ethereum/go-ethereum/core/types"
5+
56
"github.com/taikoxyz/taiko-client/bindings"
67
"github.com/taikoxyz/taiko-client/internal/testutils"
78
)

prover/event_handler/transition_contested.go

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"github.com/ethereum/go-ethereum/accounts/abi/bind"
88
"github.com/ethereum/go-ethereum/common"
99
"github.com/ethereum/go-ethereum/log"
10+
1011
"github.com/taikoxyz/taiko-client/bindings"
1112
"github.com/taikoxyz/taiko-client/pkg/rpc"
1213
proofProducer "github.com/taikoxyz/taiko-client/prover/proof_producer"

prover/event_handler/transition_proved.go

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66

77
"github.com/ethereum/go-ethereum/common"
88
"github.com/ethereum/go-ethereum/log"
9+
910
"github.com/taikoxyz/taiko-client/bindings"
1011
"github.com/taikoxyz/taiko-client/internal/metrics"
1112
"github.com/taikoxyz/taiko-client/pkg/rpc"

prover/event_handler/util_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"testing"
77

88
"github.com/stretchr/testify/suite"
9+
910
"github.com/taikoxyz/taiko-client/bindings"
1011
"github.com/taikoxyz/taiko-client/bindings/encoding"
1112
"github.com/taikoxyz/taiko-client/internal/testutils"

prover/init_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66

77
"github.com/ethereum-optimism/optimism/op-service/txmgr"
88
"github.com/ethereum/go-ethereum/common"
9+
910
"github.com/taikoxyz/taiko-client/bindings/encoding"
1011
)
1112

prover/server/server_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
"github.com/go-resty/resty/v2"
1818
"github.com/phayes/freeport"
1919
"github.com/stretchr/testify/suite"
20+
2021
"github.com/taikoxyz/taiko-client/pkg/rpc"
2122
proofProducer "github.com/taikoxyz/taiko-client/prover/proof_producer"
2223
)

prover/shared_state/state.go

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"sync/atomic"
55

66
"github.com/ethereum/go-ethereum/core/types"
7+
78
"github.com/taikoxyz/taiko-client/pkg/rpc"
89
)
910

prover/shared_state/state_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"github.com/ethereum/go-ethereum/common"
77
"github.com/ethereum/go-ethereum/core/types"
88
"github.com/stretchr/testify/suite"
9+
910
"github.com/taikoxyz/taiko-client/pkg/rpc"
1011
)
1112

0 commit comments

Comments
 (0)