Skip to content

Commit

Permalink
(BIDS-64) update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbitfly committed Jul 16, 2024
1 parent 3d13bb5 commit 4eb3810
Show file tree
Hide file tree
Showing 131 changed files with 634 additions and 500 deletions.
3 changes: 2 additions & 1 deletion cache/redis_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package cache
import (
"context"
"encoding/json"
"eth2-exporter/utils"
"fmt"
"strconv"
"time"

"github.com/gobitfly/eth2-beaconchain-explorer/utils"

"github.com/go-redis/redis/v8"
)

Expand Down
3 changes: 2 additions & 1 deletion cache/tiered_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package cache
import (
"context"
"encoding/json"
"eth2-exporter/utils"
"fmt"
"strconv"
"time"

"github.com/gobitfly/eth2-beaconchain-explorer/utils"

"github.com/coocood/freecache"
"github.com/sirupsen/logrus"
)
Expand Down
9 changes: 5 additions & 4 deletions cmd/blobindexer/blobindexer.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package main

import (
"eth2-exporter/exporter"
"eth2-exporter/types"
"eth2-exporter/utils"
"eth2-exporter/version"
"flag"
"fmt"

"github.com/gobitfly/eth2-beaconchain-explorer/exporter"
"github.com/gobitfly/eth2-beaconchain-explorer/types"
"github.com/gobitfly/eth2-beaconchain-explorer/utils"
"github.com/gobitfly/eth2-beaconchain-explorer/version"

"github.com/sirupsen/logrus"
)

Expand Down
3 changes: 2 additions & 1 deletion cmd/bundle/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package main

import (
"crypto/md5"
"eth2-exporter/utils"
"fmt"
"log"
"os"
"path"
"strings"

"github.com/gobitfly/eth2-beaconchain-explorer/utils"

"github.com/evanw/esbuild/pkg/api"
)

Expand Down
15 changes: 8 additions & 7 deletions cmd/eth1indexer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ import (
"context"
"encoding/hex"
"encoding/json"
"eth2-exporter/db"
"eth2-exporter/erc20"
"eth2-exporter/rpc"
"eth2-exporter/services"
"eth2-exporter/types"
"eth2-exporter/utils"
"eth2-exporter/version"
"flag"
"fmt"
"io"
Expand All @@ -23,6 +16,14 @@ import (
"sync/atomic"
"time"

"github.com/gobitfly/eth2-beaconchain-explorer/db"
"github.com/gobitfly/eth2-beaconchain-explorer/erc20"
"github.com/gobitfly/eth2-beaconchain-explorer/rpc"
"github.com/gobitfly/eth2-beaconchain-explorer/services"
"github.com/gobitfly/eth2-beaconchain-explorer/types"
"github.com/gobitfly/eth2-beaconchain-explorer/utils"
"github.com/gobitfly/eth2-beaconchain-explorer/version"

"github.com/coocood/freecache"
"github.com/ethereum/go-ethereum/common"
_ "github.com/jackc/pgx/v5/stdlib"
Expand Down
11 changes: 6 additions & 5 deletions cmd/ethstore-exporter/main.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
package main

import (
"eth2-exporter/db"
"eth2-exporter/exporter"
"eth2-exporter/types"
"eth2-exporter/utils"
"eth2-exporter/version"
"flag"
"fmt"
"strconv"
"strings"

"github.com/gobitfly/eth2-beaconchain-explorer/db"
"github.com/gobitfly/eth2-beaconchain-explorer/exporter"
"github.com/gobitfly/eth2-beaconchain-explorer/types"
"github.com/gobitfly/eth2-beaconchain-explorer/utils"
"github.com/gobitfly/eth2-beaconchain-explorer/version"

ethstore "github.com/gobitfly/eth.store"
_ "github.com/jackc/pgx/v5/stdlib"
"github.com/sirupsen/logrus"
Expand Down
32 changes: 17 additions & 15 deletions cmd/explorer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,6 @@ import (
"context"
"encoding/gob"
"encoding/hex"
"eth2-exporter/cache"
"eth2-exporter/db"
ethclients "eth2-exporter/ethClients"
"eth2-exporter/exporter"
"eth2-exporter/handlers"
"eth2-exporter/metrics"
"eth2-exporter/price"
"eth2-exporter/ratelimit"
"eth2-exporter/rpc"
"eth2-exporter/services"
"eth2-exporter/static"
"eth2-exporter/types"
"eth2-exporter/utils"
"eth2-exporter/version"
"flag"
"fmt"
"math/big"
Expand All @@ -26,13 +12,29 @@ import (
"sync"
"time"

"github.com/gobitfly/eth2-beaconchain-explorer/cache"
"github.com/gobitfly/eth2-beaconchain-explorer/db"
ethclients "github.com/gobitfly/eth2-beaconchain-explorer/ethClients"
"github.com/gobitfly/eth2-beaconchain-explorer/exporter"
"github.com/gobitfly/eth2-beaconchain-explorer/handlers"
"github.com/gobitfly/eth2-beaconchain-explorer/metrics"
"github.com/gobitfly/eth2-beaconchain-explorer/price"
"github.com/gobitfly/eth2-beaconchain-explorer/ratelimit"
"github.com/gobitfly/eth2-beaconchain-explorer/rpc"
"github.com/gobitfly/eth2-beaconchain-explorer/services"
"github.com/gobitfly/eth2-beaconchain-explorer/static"
"github.com/gobitfly/eth2-beaconchain-explorer/types"
"github.com/gobitfly/eth2-beaconchain-explorer/utils"
"github.com/gobitfly/eth2-beaconchain-explorer/version"

httpSwagger "github.com/swaggo/http-swagger"

"github.com/sirupsen/logrus"

_ "eth2-exporter/docs"
_ "net/http/pprof"

_ "github.com/gobitfly/eth2-beaconchain-explorer/docs"

"github.com/gorilla/csrf"
"github.com/gorilla/mux"
_ "github.com/jackc/pgx/v5/stdlib"
Expand Down
17 changes: 9 additions & 8 deletions cmd/frontend-data-updater/main.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
package main

import (
"eth2-exporter/cache"
"eth2-exporter/db"
"eth2-exporter/price"
"eth2-exporter/rpc"
"eth2-exporter/services"
"eth2-exporter/types"
"eth2-exporter/utils"
"eth2-exporter/version"
"flag"
"fmt"
"math/big"

"github.com/gobitfly/eth2-beaconchain-explorer/cache"
"github.com/gobitfly/eth2-beaconchain-explorer/db"
"github.com/gobitfly/eth2-beaconchain-explorer/price"
"github.com/gobitfly/eth2-beaconchain-explorer/rpc"
"github.com/gobitfly/eth2-beaconchain-explorer/services"
"github.com/gobitfly/eth2-beaconchain-explorer/types"
"github.com/gobitfly/eth2-beaconchain-explorer/utils"
"github.com/gobitfly/eth2-beaconchain-explorer/version"

_ "github.com/jackc/pgx/v5/stdlib"
"github.com/sirupsen/logrus"

Expand Down
13 changes: 7 additions & 6 deletions cmd/migrations/bigtable/main.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
package main

import (
"eth2-exporter/db"
"eth2-exporter/exporter"
"eth2-exporter/rpc"
"eth2-exporter/types"
"eth2-exporter/utils"
"eth2-exporter/version"
"flag"
"fmt"
"math/big"
"time"

"github.com/gobitfly/eth2-beaconchain-explorer/db"
"github.com/gobitfly/eth2-beaconchain-explorer/exporter"
"github.com/gobitfly/eth2-beaconchain-explorer/rpc"
"github.com/gobitfly/eth2-beaconchain-explorer/types"
"github.com/gobitfly/eth2-beaconchain-explorer/utils"
"github.com/gobitfly/eth2-beaconchain-explorer/version"

"github.com/sirupsen/logrus"
"golang.org/x/sync/errgroup"
)
Expand Down
3 changes: 2 additions & 1 deletion cmd/misc/commands/validator_stats_partition.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package commands

import (
"eth2-exporter/db"
"flag"
"fmt"
"math"
"strings"
"time"

"github.com/gobitfly/eth2-beaconchain-explorer/db"

"github.com/jmoiron/sqlx"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
Expand Down
19 changes: 10 additions & 9 deletions cmd/misc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@ import (
"database/sql"
"encoding/base64"
"encoding/json"
"eth2-exporter/cmd/misc/commands"
"eth2-exporter/db"
"eth2-exporter/exporter"
"eth2-exporter/ratelimit"
"eth2-exporter/rpc"
"eth2-exporter/services"
"eth2-exporter/types"
"eth2-exporter/utils"
"eth2-exporter/version"
"fmt"
"math"
"math/big"
Expand All @@ -25,6 +16,16 @@ import (
"sync"
"time"

"github.com/gobitfly/eth2-beaconchain-explorer/cmd/misc/commands"
"github.com/gobitfly/eth2-beaconchain-explorer/db"
"github.com/gobitfly/eth2-beaconchain-explorer/exporter"
"github.com/gobitfly/eth2-beaconchain-explorer/ratelimit"
"github.com/gobitfly/eth2-beaconchain-explorer/rpc"
"github.com/gobitfly/eth2-beaconchain-explorer/services"
"github.com/gobitfly/eth2-beaconchain-explorer/types"
"github.com/gobitfly/eth2-beaconchain-explorer/utils"
"github.com/gobitfly/eth2-beaconchain-explorer/version"

"github.com/coocood/freecache"
"github.com/ethereum/go-ethereum/common"
_ "github.com/jackc/pgx/v5/stdlib"
Expand Down
11 changes: 6 additions & 5 deletions cmd/node-jobs-processor/main.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
package main

import (
"eth2-exporter/db"
"eth2-exporter/metrics"
"eth2-exporter/types"
"eth2-exporter/utils"
"eth2-exporter/version"
"flag"
"fmt"
"time"

"github.com/gobitfly/eth2-beaconchain-explorer/db"
"github.com/gobitfly/eth2-beaconchain-explorer/metrics"
"github.com/gobitfly/eth2-beaconchain-explorer/types"
"github.com/gobitfly/eth2-beaconchain-explorer/utils"
"github.com/gobitfly/eth2-beaconchain-explorer/version"

_ "github.com/jackc/pgx/v5/stdlib"

"github.com/sirupsen/logrus"
Expand Down
20 changes: 11 additions & 9 deletions cmd/notification-collector/main.go
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
package main

import (
"eth2-exporter/cache"
"eth2-exporter/db"
"eth2-exporter/metrics"
"eth2-exporter/price"
"eth2-exporter/services"
"eth2-exporter/types"
"eth2-exporter/utils"
"eth2-exporter/version"
"flag"
"fmt"
"net/http"
"strings"
"sync"

"github.com/gobitfly/eth2-beaconchain-explorer/cache"
"github.com/gobitfly/eth2-beaconchain-explorer/db"
"github.com/gobitfly/eth2-beaconchain-explorer/metrics"
"github.com/gobitfly/eth2-beaconchain-explorer/price"
"github.com/gobitfly/eth2-beaconchain-explorer/services"
"github.com/gobitfly/eth2-beaconchain-explorer/types"
"github.com/gobitfly/eth2-beaconchain-explorer/utils"
"github.com/gobitfly/eth2-beaconchain-explorer/version"

"github.com/sirupsen/logrus"

_ "eth2-exporter/docs"
_ "net/http/pprof"

_ "github.com/gobitfly/eth2-beaconchain-explorer/docs"

_ "github.com/jackc/pgx/v5/stdlib"
)

Expand Down
18 changes: 10 additions & 8 deletions cmd/notification-sender/main.go
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
package main

import (
"eth2-exporter/cache"
"eth2-exporter/db"
"eth2-exporter/metrics"
"eth2-exporter/services"
"eth2-exporter/types"
"eth2-exporter/utils"
"eth2-exporter/version"
"flag"
"fmt"
"net/http"
"strings"
"sync"

"github.com/gobitfly/eth2-beaconchain-explorer/cache"
"github.com/gobitfly/eth2-beaconchain-explorer/db"
"github.com/gobitfly/eth2-beaconchain-explorer/metrics"
"github.com/gobitfly/eth2-beaconchain-explorer/services"
"github.com/gobitfly/eth2-beaconchain-explorer/types"
"github.com/gobitfly/eth2-beaconchain-explorer/utils"
"github.com/gobitfly/eth2-beaconchain-explorer/version"

"github.com/sirupsen/logrus"

_ "eth2-exporter/docs"
_ "net/http/pprof"

_ "github.com/gobitfly/eth2-beaconchain-explorer/docs"

_ "github.com/jackc/pgx/v5/stdlib"
)

Expand Down
13 changes: 7 additions & 6 deletions cmd/rewards-exporter/main.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
package main

import (
"eth2-exporter/cache"
"eth2-exporter/db"
"eth2-exporter/services"
"eth2-exporter/types"
"eth2-exporter/utils"
"eth2-exporter/version"
"flag"
"fmt"
"sync/atomic"
"time"

"github.com/gobitfly/eth2-beaconchain-explorer/cache"
"github.com/gobitfly/eth2-beaconchain-explorer/db"
"github.com/gobitfly/eth2-beaconchain-explorer/services"
"github.com/gobitfly/eth2-beaconchain-explorer/types"
"github.com/gobitfly/eth2-beaconchain-explorer/utils"
"github.com/gobitfly/eth2-beaconchain-explorer/version"

eth_rewards "github.com/gobitfly/eth-rewards"
"github.com/gobitfly/eth-rewards/beacon"
_ "github.com/jackc/pgx/v5/stdlib"
Expand Down
Loading

0 comments on commit 4eb3810

Please sign in to comment.