Skip to content

Commit ce33881

Browse files
authored
chore: execute goimports to format the code (#805)
Signed-off-by: stringscut <[email protected]>
1 parent 1f82b70 commit ce33881

File tree

13 files changed

+47
-49
lines changed

13 files changed

+47
-49
lines changed

cmd/dbbench/pebbledb.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package dbbench
22

33
import (
4+
"runtime"
5+
"sync"
6+
47
"github.com/cockroachdb/pebble"
58
"github.com/cockroachdb/pebble/bloom"
69
"github.com/syndtr/goleveldb/leveldb/iterator"
710
"github.com/syndtr/goleveldb/leveldb/util"
8-
"runtime"
9-
"sync"
1011
)
1112

1213
type (

cmd/enr/enr.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,16 @@ import (
55
"encoding/hex"
66
"encoding/json"
77
"fmt"
8-
"github.com/ethereum/go-ethereum/core/forkid"
9-
"github.com/ethereum/go-ethereum/p2p/enr"
10-
"github.com/ethereum/go-ethereum/rlp"
118
"io"
129
"os"
1310
"strings"
1411

12+
"github.com/ethereum/go-ethereum/core/forkid"
13+
"github.com/ethereum/go-ethereum/p2p/enode"
14+
"github.com/ethereum/go-ethereum/p2p/enr"
15+
"github.com/ethereum/go-ethereum/rlp"
1516
"github.com/rs/zerolog/log"
1617
"github.com/spf13/cobra"
17-
18-
"github.com/ethereum/go-ethereum/p2p/enode"
1918
)
2019

2120
var (

cmd/foldtrace/foldtrace.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
package foldtrace
22

33
import (
4+
_ "embed"
45
"encoding/json"
56
"fmt"
6-
"github.com/rs/zerolog/log"
77
"io"
88
"os"
99
"strings"
1010

11+
"github.com/rs/zerolog/log"
1112
"github.com/spf13/cobra"
12-
13-
_ "embed"
1413
)
1514

1615
var (

cmd/loadtest/uniswapv3/deploy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ package uniswapv3loadtest
33
import (
44
"context"
55
"errors"
6-
"github.com/0xPolygon/polygon-cli/bindings/tokens"
76
"math/big"
87
"reflect"
98
"strings"
109

10+
"github.com/0xPolygon/polygon-cli/bindings/tokens"
1111
"github.com/0xPolygon/polygon-cli/bindings/uniswapv3"
1212
"github.com/0xPolygon/polygon-cli/util"
1313
"github.com/ethereum/go-ethereum/accounts/abi/bind"

cmd/loadtest/uniswapv3/pool.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ import (
55
"context"
66
"errors"
77
"fmt"
8-
"github.com/0xPolygon/polygon-cli/bindings/tokens"
9-
"github.com/ethereum/go-ethereum/core/types"
108
"math/big"
119
"time"
1210

11+
"github.com/0xPolygon/polygon-cli/bindings/tokens"
1312
"github.com/0xPolygon/polygon-cli/bindings/uniswapv3"
1413
"github.com/0xPolygon/polygon-cli/util"
1514
"github.com/ethereum/go-ethereum/accounts/abi/bind"
1615
"github.com/ethereum/go-ethereum/common"
16+
"github.com/ethereum/go-ethereum/core/types"
1717
"github.com/ethereum/go-ethereum/ethclient"
1818
"github.com/rs/zerolog/log"
1919
)

cmd/loadtest/uniswapv3/swapper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"context"
55
"errors"
66
"fmt"
7-
"github.com/0xPolygon/polygon-cli/bindings/tokens"
87
"math/big"
98

9+
"github.com/0xPolygon/polygon-cli/bindings/tokens"
1010
"github.com/0xPolygon/polygon-cli/util"
1111
"github.com/ethereum/go-ethereum/accounts/abi/bind"
1212
"github.com/ethereum/go-ethereum/common"

cmd/parsebatchl2data/parsebatchl2data.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ import (
55
"encoding/hex"
66
"encoding/json"
77
"fmt"
8-
"github.com/ethereum/go-ethereum/core/types"
9-
"github.com/rs/zerolog/log"
10-
"github.com/spf13/cobra"
118
"io"
129
"os"
1310
"strings"
11+
12+
"github.com/ethereum/go-ethereum/core/types"
13+
"github.com/rs/zerolog/log"
14+
"github.com/spf13/cobra"
1415
)
1516

1617
var (

cmd/parsebatchl2data/zkevm_vendor.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ import (
44
"encoding/hex"
55
"errors"
66
"fmt"
7+
"math/big"
8+
"strconv"
9+
710
"github.com/ethereum/go-ethereum/common"
811
"github.com/ethereum/go-ethereum/core/types"
912
"github.com/ethereum/go-ethereum/rlp"
1013
"github.com/rs/zerolog/log"
11-
"math/big"
12-
"strconv"
1314
)
1415

1516
// L2BlockRaw is the raw representation of a L2 block.

cmd/parseethwallet/parseethwallet.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
package parseethwallet
22

33
import (
4+
_ "embed"
45
"encoding/hex"
56
"encoding/json"
67
"fmt"
7-
"github.com/0xPolygon/polygon-cli/gethkeystore"
88
"io"
99
"os"
1010
"strings"
1111

12+
"github.com/0xPolygon/polygon-cli/gethkeystore"
13+
"github.com/ethereum/go-ethereum/accounts/keystore"
1214
"github.com/ethereum/go-ethereum/crypto"
1315
"github.com/ethereum/go-ethereum/crypto/secp256k1"
14-
"golang.org/x/crypto/sha3"
15-
16-
_ "embed"
17-
18-
"github.com/ethereum/go-ethereum/accounts/keystore"
1916
"github.com/spf13/cobra"
17+
"golang.org/x/crypto/sha3"
2018
)
2119

2220
var (

cmd/retest/retest.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ import (
66
"encoding/hex"
77
"encoding/json"
88
"fmt"
9-
"github.com/0xPolygon/polygon-cli/abi"
10-
"github.com/0xPolygon/polygon-cli/util"
11-
ethcommon "github.com/ethereum/go-ethereum/common"
12-
"github.com/ethereum/go-ethereum/common/hexutil"
13-
"github.com/rs/zerolog/log"
14-
"github.com/spf13/cobra"
159
"io"
1610
"math"
1711
"math/big"
@@ -20,6 +14,13 @@ import (
2014
"reflect"
2115
"regexp"
2216
"strings"
17+
18+
"github.com/0xPolygon/polygon-cli/abi"
19+
"github.com/0xPolygon/polygon-cli/util"
20+
ethcommon "github.com/ethereum/go-ethereum/common"
21+
"github.com/ethereum/go-ethereum/common/hexutil"
22+
"github.com/rs/zerolog/log"
23+
"github.com/spf13/cobra"
2324
)
2425

2526
var (

0 commit comments

Comments
 (0)