Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BIDS-64/change_module_name #2915

Merged
merged 4 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ GITCOMMIT=`git describe --always`
VERSION=`git describe --always --tags`
GITDATE=`TZ=UTC git show -s --date=iso-strict-local --format=%cd HEAD`
BUILDDATE=`date -u +"%Y-%m-%dT%H:%M:%S%:z"`
PACKAGE=eth2-exporter
PACKAGE=github.com/gobitfly/eth2-beaconchain-explorer
LDFLAGS="-X ${PACKAGE}/version.Version=${VERSION} -X ${PACKAGE}/version.BuildDate=${BUILDDATE} -X ${PACKAGE}/version.GitCommit=${GITCOMMIT} -X ${PACKAGE}/version.GitDate=${GITDATE} -s -w"
CGO_CFLAGS="-O -D__BLST_PORTABLE__"
CGO_CFLAGS_ALLOW="-O -D__BLST_PORTABLE__"
Expand Down
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
17 changes: 9 additions & 8 deletions cmd/eth1indexer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@ import (
"context"
"encoding/hex"
"encoding/json"
"eth2-exporter/db"
"eth2-exporter/erc20"
"eth2-exporter/metrics"
"eth2-exporter/rpc"
"eth2-exporter/services"
"eth2-exporter/types"
"eth2-exporter/utils"
"eth2-exporter/version"
"flag"
"fmt"
"io"
Expand All @@ -24,6 +16,15 @@ import (
"sync/atomic"
"time"

"github.com/gobitfly/eth2-beaconchain-explorer/db"
"github.com/gobitfly/eth2-beaconchain-explorer/erc20"
"github.com/gobitfly/eth2-beaconchain-explorer/metrics"
"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
Loading