Skip to content

Commit 2029f10

Browse files
committed
chore: execute goimports to format the code
Signed-off-by: stringscut <[email protected]>
1 parent 1f82b70 commit 2029f10

File tree

13 files changed

+36
-24
lines changed

13 files changed

+36
-24
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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ 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/enr"
14+
"github.com/ethereum/go-ethereum/rlp"
15+
1516
"github.com/rs/zerolog/log"
1617
"github.com/spf13/cobra"
1718

cmd/foldtrace/foldtrace.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ package foldtrace
33
import (
44
"encoding/json"
55
"fmt"
6-
"github.com/rs/zerolog/log"
76
"io"
87
"os"
98
"strings"
109

10+
"github.com/rs/zerolog/log"
11+
1112
"github.com/spf13/cobra"
1213

1314
_ "embed"

cmd/loadtest/uniswapv3/deploy.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ 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"
11+
1112
"github.com/0xPolygon/polygon-cli/bindings/uniswapv3"
1213
"github.com/0xPolygon/polygon-cli/util"
1314
"github.com/ethereum/go-ethereum/accounts/abi/bind"

cmd/loadtest/uniswapv3/pool.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ 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"
12+
"github.com/ethereum/go-ethereum/core/types"
13+
1314
"github.com/0xPolygon/polygon-cli/bindings/uniswapv3"
1415
"github.com/0xPolygon/polygon-cli/util"
1516
"github.com/ethereum/go-ethereum/accounts/abi/bind"

cmd/loadtest/uniswapv3/swapper.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ 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"
10+
1011
"github.com/0xPolygon/polygon-cli/util"
1112
"github.com/ethereum/go-ethereum/accounts/abi/bind"
1213
"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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ import (
44
"encoding/hex"
55
"encoding/json"
66
"fmt"
7-
"github.com/0xPolygon/polygon-cli/gethkeystore"
87
"io"
98
"os"
109
"strings"
1110

11+
"github.com/0xPolygon/polygon-cli/gethkeystore"
12+
1213
"github.com/ethereum/go-ethereum/crypto"
1314
"github.com/ethereum/go-ethereum/crypto/secp256k1"
1415
"golang.org/x/crypto/sha3"

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)