Skip to content

Commit

Permalink
rename dora-the-explorer to dora
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Sep 29, 2023
1 parent b415a7e commit 4134ba6
Show file tree
Hide file tree
Showing 47 changed files with 143 additions and 143 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ jobs:
## Latest automatically built executables. (Unstable development snapshot)
Built from master branch (commit: ${{ github.sha }})
Please read the [wiki](https://github.com/pk910/dora-the-explorer/wiki) for setup / configuration instructions.
Please read the [wiki](https://github.com/pk910/dora/wiki) for setup / configuration instructions.
### Release Artifacts
| Release File | Description |
| ------------- | ------------- |
| [explorer_windows_amd64.exe](https://github.com/pk910/dora-the-explorer/releases/download/snapshot/explorer_windows_amd64.exe) | explorer executable for windows (64bit) |
| [explorer_linux_amd64](https://github.com/pk910/dora-the-explorer/releases/download/snapshot/explorer_linux_amd64) | explorer executable for linux (64bit) |
| [explorer_darwin_amd64](https://github.com/pk910/dora-the-explorer/releases/download/snapshot/explorer_darwin_amd64) | explorer executable for macos (64bit) |
| [explorer_windows_amd64.exe](https://github.com/pk910/dora/releases/download/snapshot/explorer_windows_amd64.exe) | explorer executable for windows (64bit) |
| [explorer_linux_amd64](https://github.com/pk910/dora/releases/download/snapshot/explorer_linux_amd64) | explorer executable for linux (64bit) |
| [explorer_darwin_amd64](https://github.com/pk910/dora/releases/download/snapshot/explorer_darwin_amd64) | explorer executable for macos (64bit) |
env:
GITHUB_TOKEN: ${{ github.token }}

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ jobs:
...
### Release Artifacts
Please read through the [wiki](https://github.com/pk910/dora-the-explorer/wiki) for setup & configuration instructions.
Please read through the [wiki](https://github.com/pk910/dora/wiki) for setup & configuration instructions.
| Release File | Description |
| ------------- | ------------- |
| [explorer_windows_amd64.exe](https://github.com/pk910/dora-the-explorer/releases/download/v${{ inputs.version }}/explorer_windows_amd64.exe) | explorer executable for windows (64bit) |
| [explorer_linux_amd64](https://github.com/pk910/dora-the-explorer/releases/download/v${{ inputs.version }}/explorer_linux_amd64) | explorer executable for linux (64bit) |
| [explorer_darwin_amd64](https://github.com/pk910/dora-the-explorer/releases/download/v${{ inputs.version }}/explorer_darwin_amd64) | explorer executable for macos (64bit) |
| [explorer_windows_amd64.exe](https://github.com/pk910/dora/releases/download/v${{ inputs.version }}/explorer_windows_amd64.exe) | explorer executable for windows (64bit) |
| [explorer_linux_amd64](https://github.com/pk910/dora/releases/download/v${{ inputs.version }}/explorer_linux_amd64) | explorer executable for linux (64bit) |
| [explorer_darwin_amd64](https://github.com/pk910/dora/releases/download/v${{ inputs.version }}/explorer_darwin_amd64) | explorer executable for macos (64bit) |
env:
GITHUB_TOKEN: ${{ github.token }}

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN <<EOR
VERSION=$(git rev-parse --short HEAD)
BUILDTIME=$(date -u '+%Y-%m-%dT%H:%M:%SZ')
RELEASE=$release
CGO_ENABLED=1 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o /bin/dora-explorer -ldflags="-s -w -X 'github.com/pk910/dora-the-explorer/utils.BuildVersion=${VERSION}' -X 'github.com/pk910/dora-the-explorer/utils.BuildRelease=${RELEASE}' -X 'github.com/pk910/dora-the-explorer/utils.Buildtime=${BUILDTIME}'" ./cmd/explorer
CGO_ENABLED=1 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o /bin/dora-explorer -ldflags="-s -w -X 'github.com/pk910/dora/utils.BuildVersion=${VERSION}' -X 'github.com/pk910/dora/utils.BuildRelease=${RELEASE}' -X 'github.com/pk910/dora/utils.Buildtime=${BUILDTIME}'" ./cmd/explorer
EOR

# final stage
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ VERSION := $(shell git rev-parse --short HEAD)
BUILDTIME := $(shell date -u '+%Y-%m-%dT%H:%M:%SZ')
VERSION := $(shell git rev-parse --short HEAD)

GOLDFLAGS += -X 'github.com/pk910/dora-the-explorer/utils.BuildVersion="$(VERSION)"'
GOLDFLAGS += -X 'github.com/pk910/dora-the-explorer/utils.Buildtime="$(BUILDTIME)"'
GOLDFLAGS += -X 'github.com/pk910/dora-the-explorer/utils.BuildRelease="$(RELEASE)"'
GOLDFLAGS += -X 'github.com/pk910/dora/utils.BuildVersion="$(VERSION)"'
GOLDFLAGS += -X 'github.com/pk910/dora/utils.Buildtime="$(BUILDTIME)"'
GOLDFLAGS += -X 'github.com/pk910/dora/utils.BuildRelease="$(RELEASE)"'

.PHONY: all test clean

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Dora the Beaconchain Explorer

[![Badge](https://github.com/pk910/dora-the-explorer/actions/workflows/build-master.yml/badge.svg)](https://github.com/pk910/dora-the-explorer/actions?query=workflow%3A%22Build+master%22)
[![Go Report Card](https://goreportcard.com/badge/github.com/pk910/dora-the-explorer)](https://goreportcard.com/report/github.com/pk910/dora-the-explorer)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/pk910/dora-the-explorer?label=Latest%20Release)](https://github.com/pk910/dora-the-explorer/releases/latest)
[![Badge](https://github.com/pk910/dora/actions/workflows/build-master.yml/badge.svg)](https://github.com/pk910/dora/actions?query=workflow%3A%22Build+master%22)
[![Go Report Card](https://goreportcard.com/badge/github.com/pk910/dora)](https://goreportcard.com/report/github.com/pk910/dora)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/pk910/dora-the-explorer?label=Latest%20Release)](https://github.com/pk910/dora/releases/latest)

## What is this?
This is a lightweight beaconchain explorer.
Expand All @@ -12,7 +12,7 @@ A Beaconchain explorer is a tool that allows users to view and interact with the
This "lightweight" explorer loads most of the information directly from an underlying standard beacon node api, which makes it a lot easier and cheaper to run (no 3rd party proprietary database like bigtables required).

# Setup & Configuration
Read through the [wiki](https://github.com/pk910/dora-the-explorer/wiki) for setup & configuration instructions.
Read through the [wiki](https://github.com/pk910/dora/wiki) for setup & configuration instructions.

## Dependencies

Expand Down
2 changes: 1 addition & 1 deletion cache/redis_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

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

"github.com/pk910/dora-the-explorer/utils"
"github.com/pk910/dora/utils"
)

type RedisCache struct {
Expand Down
2 changes: 1 addition & 1 deletion cache/tiered_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/coocood/freecache"
"github.com/sirupsen/logrus"

"github.com/pk910/dora-the-explorer/utils"
"github.com/pk910/dora/utils"
)

// Tiered cache is a cache implementation combining a local & remote cache
Expand Down
12 changes: 6 additions & 6 deletions cmd/explorer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (
logger "github.com/sirupsen/logrus"
"github.com/urfave/negroni"

"github.com/pk910/dora-the-explorer/db"
"github.com/pk910/dora-the-explorer/handlers"
"github.com/pk910/dora-the-explorer/services"
"github.com/pk910/dora-the-explorer/static"
"github.com/pk910/dora-the-explorer/types"
"github.com/pk910/dora-the-explorer/utils"
"github.com/pk910/dora/db"
"github.com/pk910/dora/handlers"
"github.com/pk910/dora/services"
"github.com/pk910/dora/static"
"github.com/pk910/dora/types"
"github.com/pk910/dora/utils"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion config/default.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ frontend:
minimize: false # minimize html templates

# Name of the site, displayed in the title tag
siteName: "Beaconchain Light"
siteName: "Dora the Explorer"
siteSubtitle: ""

# link to EL Explorer
Expand Down
6 changes: 3 additions & 3 deletions db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"github.com/pressly/goose/v3"
"github.com/sirupsen/logrus"

"github.com/pk910/dora-the-explorer/dbtypes"
"github.com/pk910/dora-the-explorer/types"
"github.com/pk910/dora-the-explorer/utils"
"github.com/pk910/dora/dbtypes"
"github.com/pk910/dora/types"
"github.com/pk910/dora/utils"

"github.com/jackc/pgx/v4/pgxpool"
_ "github.com/jackc/pgx/v4/stdlib"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/pk910/dora-the-explorer
module github.com/pk910/dora

go 1.20

Expand Down
8 changes: 4 additions & 4 deletions handlers/clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"net/http"
"time"

"github.com/pk910/dora-the-explorer/services"
"github.com/pk910/dora-the-explorer/templates"
"github.com/pk910/dora-the-explorer/types/models"
"github.com/pk910/dora-the-explorer/utils"
"github.com/pk910/dora/services"
"github.com/pk910/dora/templates"
"github.com/pk910/dora/types/models"
"github.com/pk910/dora/utils"
"github.com/sirupsen/logrus"
)

Expand Down
8 changes: 4 additions & 4 deletions handlers/epoch.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"github.com/gorilla/mux"
"github.com/sirupsen/logrus"

"github.com/pk910/dora-the-explorer/services"
"github.com/pk910/dora-the-explorer/templates"
"github.com/pk910/dora-the-explorer/types/models"
"github.com/pk910/dora-the-explorer/utils"
"github.com/pk910/dora/services"
"github.com/pk910/dora/templates"
"github.com/pk910/dora/types/models"
"github.com/pk910/dora/utils"
)

// Epoch will return the main "epoch" page using a go template
Expand Down
8 changes: 4 additions & 4 deletions handlers/epochs.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"strconv"
"time"

"github.com/pk910/dora-the-explorer/services"
"github.com/pk910/dora-the-explorer/templates"
"github.com/pk910/dora-the-explorer/types/models"
"github.com/pk910/dora-the-explorer/utils"
"github.com/pk910/dora/services"
"github.com/pk910/dora/templates"
"github.com/pk910/dora/types/models"
"github.com/pk910/dora/utils"
"github.com/sirupsen/logrus"
)

Expand Down
8 changes: 4 additions & 4 deletions handlers/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"strings"
"time"

"github.com/pk910/dora-the-explorer/services"
"github.com/pk910/dora-the-explorer/templates"
"github.com/pk910/dora-the-explorer/types/models"
"github.com/pk910/dora-the-explorer/utils"
"github.com/pk910/dora/services"
"github.com/pk910/dora/templates"
"github.com/pk910/dora/types/models"
"github.com/pk910/dora/utils"
"github.com/sirupsen/logrus"
)

Expand Down
12 changes: 6 additions & 6 deletions handlers/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import (
"time"

v1 "github.com/attestantio/go-eth2-client/api/v1"
"github.com/pk910/dora-the-explorer/db"
"github.com/pk910/dora-the-explorer/dbtypes"
"github.com/pk910/dora-the-explorer/services"
"github.com/pk910/dora-the-explorer/templates"
"github.com/pk910/dora-the-explorer/types/models"
"github.com/pk910/dora-the-explorer/utils"
"github.com/pk910/dora/db"
"github.com/pk910/dora/dbtypes"
"github.com/pk910/dora/services"
"github.com/pk910/dora/templates"
"github.com/pk910/dora/types/models"
"github.com/pk910/dora/utils"
"github.com/sirupsen/logrus"
)

Expand Down
4 changes: 2 additions & 2 deletions handlers/pageData.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

logger "github.com/sirupsen/logrus"

"github.com/pk910/dora-the-explorer/types"
"github.com/pk910/dora-the-explorer/utils"
"github.com/pk910/dora/types"
"github.com/pk910/dora/utils"
)

var layoutTemplateFiles = []string{
Expand Down
12 changes: 6 additions & 6 deletions handlers/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import (
"github.com/gorilla/mux"
"github.com/sirupsen/logrus"

"github.com/pk910/dora-the-explorer/db"
"github.com/pk910/dora-the-explorer/dbtypes"
"github.com/pk910/dora-the-explorer/services"
"github.com/pk910/dora-the-explorer/templates"
"github.com/pk910/dora-the-explorer/types/models"
"github.com/pk910/dora-the-explorer/utils"
"github.com/pk910/dora/db"
"github.com/pk910/dora/dbtypes"
"github.com/pk910/dora/services"
"github.com/pk910/dora/templates"
"github.com/pk910/dora/types/models"
"github.com/pk910/dora/utils"
)

var searchLikeRE = regexp.MustCompile(`^[0-9a-fA-F]{0,96}$`)
Expand Down
16 changes: 8 additions & 8 deletions handlers/slot.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ import (
"github.com/juliangruber/go-intersect"
"github.com/sirupsen/logrus"

"github.com/pk910/dora-the-explorer/db"
"github.com/pk910/dora-the-explorer/dbtypes"
"github.com/pk910/dora-the-explorer/rpc"
"github.com/pk910/dora-the-explorer/services"
"github.com/pk910/dora-the-explorer/templates"
"github.com/pk910/dora-the-explorer/types"
"github.com/pk910/dora-the-explorer/types/models"
"github.com/pk910/dora-the-explorer/utils"
"github.com/pk910/dora/db"
"github.com/pk910/dora/dbtypes"
"github.com/pk910/dora/rpc"
"github.com/pk910/dora/services"
"github.com/pk910/dora/templates"
"github.com/pk910/dora/types"
"github.com/pk910/dora/types/models"
"github.com/pk910/dora/utils"
)

// Index will return the main "index" page using a go template
Expand Down
8 changes: 4 additions & 4 deletions handlers/slots.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"strconv"
"time"

"github.com/pk910/dora-the-explorer/services"
"github.com/pk910/dora-the-explorer/templates"
"github.com/pk910/dora-the-explorer/types/models"
"github.com/pk910/dora-the-explorer/utils"
"github.com/pk910/dora/services"
"github.com/pk910/dora/templates"
"github.com/pk910/dora/types/models"
"github.com/pk910/dora/utils"
"github.com/sirupsen/logrus"
)

Expand Down
10 changes: 5 additions & 5 deletions handlers/slots_filtered.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"strconv"
"time"

"github.com/pk910/dora-the-explorer/dbtypes"
"github.com/pk910/dora-the-explorer/services"
"github.com/pk910/dora-the-explorer/templates"
"github.com/pk910/dora-the-explorer/types/models"
"github.com/pk910/dora-the-explorer/utils"
"github.com/pk910/dora/dbtypes"
"github.com/pk910/dora/services"
"github.com/pk910/dora/templates"
"github.com/pk910/dora/types/models"
"github.com/pk910/dora/utils"
"github.com/sirupsen/logrus"
)

Expand Down
10 changes: 5 additions & 5 deletions handlers/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import (
"github.com/gorilla/mux"
"github.com/sirupsen/logrus"

"github.com/pk910/dora-the-explorer/dbtypes"
"github.com/pk910/dora-the-explorer/services"
"github.com/pk910/dora-the-explorer/templates"
"github.com/pk910/dora-the-explorer/types/models"
"github.com/pk910/dora-the-explorer/utils"
"github.com/pk910/dora/dbtypes"
"github.com/pk910/dora/services"
"github.com/pk910/dora/templates"
"github.com/pk910/dora/types/models"
"github.com/pk910/dora/utils"
)

// Validator will return the main "validator" page using a go template
Expand Down
10 changes: 5 additions & 5 deletions handlers/validator_slots.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
"github.com/gorilla/mux"
"github.com/sirupsen/logrus"

"github.com/pk910/dora-the-explorer/dbtypes"
"github.com/pk910/dora-the-explorer/services"
"github.com/pk910/dora-the-explorer/templates"
"github.com/pk910/dora-the-explorer/types/models"
"github.com/pk910/dora-the-explorer/utils"
"github.com/pk910/dora/dbtypes"
"github.com/pk910/dora/services"
"github.com/pk910/dora/templates"
"github.com/pk910/dora/types/models"
"github.com/pk910/dora/utils"
)

// Slots will return the main "slots" page using a go template
Expand Down
8 changes: 4 additions & 4 deletions handlers/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
v1 "github.com/attestantio/go-eth2-client/api/v1"
"golang.org/x/exp/maps"

"github.com/pk910/dora-the-explorer/services"
"github.com/pk910/dora-the-explorer/templates"
"github.com/pk910/dora-the-explorer/types/models"
"github.com/pk910/dora-the-explorer/utils"
"github.com/pk910/dora/services"
"github.com/pk910/dora/templates"
"github.com/pk910/dora/types/models"
"github.com/pk910/dora/utils"
"github.com/sirupsen/logrus"
)

Expand Down
8 changes: 4 additions & 4 deletions indexer/blobstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"github.com/jmoiron/sqlx"
"github.com/sirupsen/logrus"

"github.com/pk910/dora-the-explorer/aws"
"github.com/pk910/dora-the-explorer/db"
"github.com/pk910/dora-the-explorer/dbtypes"
"github.com/pk910/dora-the-explorer/utils"
"github.com/pk910/dora/aws"
"github.com/pk910/dora/db"
"github.com/pk910/dora/dbtypes"
"github.com/pk910/dora/utils"
)

var logger_blobs = logrus.StandardLogger().WithField("module", "blobstore")
Expand Down
4 changes: 2 additions & 2 deletions indexer/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
v1 "github.com/attestantio/go-eth2-client/api/v1"
"github.com/attestantio/go-eth2-client/spec/phase0"

"github.com/pk910/dora-the-explorer/db"
"github.com/pk910/dora-the-explorer/utils"
"github.com/pk910/dora/db"
"github.com/pk910/dora/utils"
)

type indexerCache struct {
Expand Down
4 changes: 2 additions & 2 deletions indexer/cache_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/attestantio/go-eth2-client/spec"
"github.com/attestantio/go-eth2-client/spec/phase0"
"github.com/pk910/dora-the-explorer/db"
"github.com/pk910/dora-the-explorer/dbtypes"
"github.com/pk910/dora/db"
"github.com/pk910/dora/dbtypes"
)

type CacheBlock struct {
Expand Down
Loading

0 comments on commit 4134ba6

Please sign in to comment.