Skip to content

Commit

Permalink
Merge pull request #22 from pk910/project-rename
Browse files Browse the repository at this point in the history
Rename the project to `dora-the-explorer`
  • Loading branch information
pk910 authored Sep 21, 2023
2 parents d791db6 + 03820d0 commit 481165b
Show file tree
Hide file tree
Showing 45 changed files with 153 additions and 153 deletions.
12 changes: 6 additions & 6 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/light-beaconchain-explorer/wiki) for setup / configuration instructions.
Please read the [wiki](https://github.com/pk910/dora-the-explorer/wiki) for setup / configuration instructions.
### Release Artifacts
| Release File | Description |
| ------------- | ------------- |
| [explorer_windows_amd64.exe](https://github.com/pk910/light-beaconchain-explorer/releases/download/snapshot/explorer_windows_amd64.exe) | explorer executable for windows (64bit) |
| [explorer_linux_amd64](https://github.com/pk910/light-beaconchain-explorer/releases/download/snapshot/explorer_linux_amd64) | explorer executable for linux (64bit) |
| [explorer_darwin_amd64](https://github.com/pk910/light-beaconchain-explorer/releases/download/snapshot/explorer_darwin_amd64) | explorer executable for macos (64bit) |
| [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) |
env:
GITHUB_TOKEN: ${{ github.token }}

Expand Down Expand Up @@ -143,6 +143,6 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build unstable docker image
run: docker build . --build-arg release=snapshot --file Dockerfile --tag pk910/light-beaconchain-explorer:unstable
run: docker build . --build-arg release=snapshot --file Dockerfile --tag pk910/dora-the-explorer:unstable
- name: Push unstable docker image
run: docker push pk910/light-beaconchain-explorer:unstable
run: docker push pk910/dora-the-explorer:unstable
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/light-beaconchain-explorer/wiki) for setup & configuration instructions.
Please read through the [wiki](https://github.com/pk910/dora-the-explorer/wiki) for setup & configuration instructions.
| Release File | Description |
| ------------- | ------------- |
| [explorer_windows_amd64.exe](https://github.com/pk910/light-beaconchain-explorer/releases/download/v${{ inputs.version }}/explorer_windows_amd64.exe) | explorer executable for windows (64bit) |
| [explorer_linux_amd64](https://github.com/pk910/light-beaconchain-explorer/releases/download/v${{ inputs.version }}/explorer_linux_amd64) | explorer executable for linux (64bit) |
| [explorer_darwin_amd64](https://github.com/pk910/light-beaconchain-explorer/releases/download/v${{ inputs.version }}/explorer_darwin_amd64) | explorer executable for macos (64bit) |
| [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) |
env:
GITHUB_TOKEN: ${{ github.token }}

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build version specific docker image
run: docker build . --build-arg release=${{ github.event.release.tag_name }} --file Dockerfile --tag pk910/light-beaconchain-explorer:${{ github.event.release.tag_name }}
run: docker build . --build-arg release=${{ github.event.release.tag_name }} --file Dockerfile --tag pk910/dora-the-explorer:${{ github.event.release.tag_name }}
- name: Push version specific docker image
run: docker push pk910/light-beaconchain-explorer:${{ github.event.release.tag_name }}
run: docker push pk910/dora-the-explorer:${{ github.event.release.tag_name }}
- name: Build latest docker image
run: docker build . --build-arg release=${{ github.event.release.tag_name }} --file Dockerfile --tag pk910/light-beaconchain-explorer:latest
run: docker build . --build-arg release=${{ github.event.release.tag_name }} --file Dockerfile --tag pk910/dora-the-explorer:latest
- name: Push latest docker image
run: docker push pk910/light-beaconchain-explorer:latest
run: docker push pk910/dora-the-explorer:latest
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/light-beaconchain-explorer/utils.BuildVersion=${VERSION}' -X 'github.com/pk910/light-beaconchain-explorer/utils.BuildRelease=${RELEASE}' -X 'github.com/pk910/light-beaconchain-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-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
EOR

# final stage
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# light-beaconchain-explorer
# dora-the-explorer
EXECUTABLE=explorer
WINDOWS=$(EXECUTABLE)_windows_amd64.exe
LINUX=$(EXECUTABLE)_linux_amd64
Expand All @@ -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/light-beaconchain-explorer/utils.BuildVersion="$(VERSION)"'
GOLDFLAGS += -X 'github.com/pk910/light-beaconchain-explorer/utils.Buildtime="$(BUILDTIME)"'
GOLDFLAGS += -X 'github.com/pk910/light-beaconchain-explorer/utils.BuildRelease="$(RELEASE)"'
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)"'

.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 @@
# Lightweight Beaconchain Explorer

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

## 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/light-beaconchain-explorer/wiki) for setup & configuration instructions.
Read through the [wiki](https://github.com/pk910/dora-the-explorer/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/light-beaconchain-explorer/utils"
"github.com/pk910/dora-the-explorer/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/light-beaconchain-explorer/utils"
"github.com/pk910/dora-the-explorer/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/light-beaconchain-explorer/db"
"github.com/pk910/light-beaconchain-explorer/handlers"
"github.com/pk910/light-beaconchain-explorer/services"
"github.com/pk910/light-beaconchain-explorer/static"
"github.com/pk910/light-beaconchain-explorer/types"
"github.com/pk910/light-beaconchain-explorer/utils"
"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"
)

func main() {
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/light-beaconchain-explorer/dbtypes"
"github.com/pk910/light-beaconchain-explorer/types"
"github.com/pk910/light-beaconchain-explorer/utils"
"github.com/pk910/dora-the-explorer/dbtypes"
"github.com/pk910/dora-the-explorer/types"
"github.com/pk910/dora-the-explorer/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/light-beaconchain-explorer
module github.com/pk910/dora-the-explorer

go 1.20

Expand Down
2 changes: 1 addition & 1 deletion handlers/404.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"path"
"strings"

"github.com/pk910/light-beaconchain-explorer/templates"
"github.com/pk910/dora-the-explorer/templates"
"github.com/sirupsen/logrus"
)

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/light-beaconchain-explorer/services"
"github.com/pk910/light-beaconchain-explorer/templates"
"github.com/pk910/light-beaconchain-explorer/types/models"
"github.com/pk910/light-beaconchain-explorer/utils"
"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/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/light-beaconchain-explorer/services"
"github.com/pk910/light-beaconchain-explorer/templates"
"github.com/pk910/light-beaconchain-explorer/types/models"
"github.com/pk910/light-beaconchain-explorer/utils"
"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"
)

// 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/light-beaconchain-explorer/services"
"github.com/pk910/light-beaconchain-explorer/templates"
"github.com/pk910/light-beaconchain-explorer/types/models"
"github.com/pk910/light-beaconchain-explorer/utils"
"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/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 @@ -11,12 +11,12 @@ import (
"strings"
"time"

"github.com/pk910/light-beaconchain-explorer/db"
"github.com/pk910/light-beaconchain-explorer/dbtypes"
"github.com/pk910/light-beaconchain-explorer/services"
"github.com/pk910/light-beaconchain-explorer/templates"
"github.com/pk910/light-beaconchain-explorer/types/models"
"github.com/pk910/light-beaconchain-explorer/utils"
"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/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/light-beaconchain-explorer/types"
"github.com/pk910/light-beaconchain-explorer/utils"
"github.com/pk910/dora-the-explorer/types"
"github.com/pk910/dora-the-explorer/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 @@ -12,12 +12,12 @@ import (
"github.com/gorilla/mux"
"github.com/sirupsen/logrus"

"github.com/pk910/light-beaconchain-explorer/db"
"github.com/pk910/light-beaconchain-explorer/dbtypes"
"github.com/pk910/light-beaconchain-explorer/services"
"github.com/pk910/light-beaconchain-explorer/templates"
"github.com/pk910/light-beaconchain-explorer/types/models"
"github.com/pk910/light-beaconchain-explorer/utils"
"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"
)

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 @@ -15,14 +15,14 @@ import (
"github.com/juliangruber/go-intersect"
"github.com/sirupsen/logrus"

"github.com/pk910/light-beaconchain-explorer/db"
"github.com/pk910/light-beaconchain-explorer/dbtypes"
"github.com/pk910/light-beaconchain-explorer/rpctypes"
"github.com/pk910/light-beaconchain-explorer/services"
"github.com/pk910/light-beaconchain-explorer/templates"
"github.com/pk910/light-beaconchain-explorer/types"
"github.com/pk910/light-beaconchain-explorer/types/models"
"github.com/pk910/light-beaconchain-explorer/utils"
"github.com/pk910/dora-the-explorer/db"
"github.com/pk910/dora-the-explorer/dbtypes"
"github.com/pk910/dora-the-explorer/rpctypes"
"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"
)

// 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/light-beaconchain-explorer/services"
"github.com/pk910/light-beaconchain-explorer/templates"
"github.com/pk910/light-beaconchain-explorer/types/models"
"github.com/pk910/light-beaconchain-explorer/utils"
"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/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/light-beaconchain-explorer/dbtypes"
"github.com/pk910/light-beaconchain-explorer/services"
"github.com/pk910/light-beaconchain-explorer/templates"
"github.com/pk910/light-beaconchain-explorer/types/models"
"github.com/pk910/light-beaconchain-explorer/utils"
"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/sirupsen/logrus"
)

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

"github.com/pk910/light-beaconchain-explorer/dbtypes"
"github.com/pk910/light-beaconchain-explorer/rpctypes"
"github.com/pk910/light-beaconchain-explorer/services"
"github.com/pk910/light-beaconchain-explorer/templates"
"github.com/pk910/light-beaconchain-explorer/types/models"
"github.com/pk910/light-beaconchain-explorer/utils"
"github.com/pk910/dora-the-explorer/dbtypes"
"github.com/pk910/dora-the-explorer/rpctypes"
"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"
)

// 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/light-beaconchain-explorer/dbtypes"
"github.com/pk910/light-beaconchain-explorer/services"
"github.com/pk910/light-beaconchain-explorer/templates"
"github.com/pk910/light-beaconchain-explorer/types/models"
"github.com/pk910/light-beaconchain-explorer/utils"
"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"
)

// Slots will return the main "slots" page using a go template
Expand Down
10 changes: 5 additions & 5 deletions handlers/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import (
"strings"
"time"

"github.com/pk910/light-beaconchain-explorer/rpctypes"
"github.com/pk910/light-beaconchain-explorer/services"
"github.com/pk910/light-beaconchain-explorer/templates"
"github.com/pk910/light-beaconchain-explorer/types/models"
"github.com/pk910/light-beaconchain-explorer/utils"
"github.com/pk910/dora-the-explorer/rpctypes"
"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/sirupsen/logrus"
)

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

"github.com/pk910/light-beaconchain-explorer/aws"
"github.com/pk910/light-beaconchain-explorer/db"
"github.com/pk910/light-beaconchain-explorer/dbtypes"
"github.com/pk910/light-beaconchain-explorer/rpctypes"
"github.com/pk910/light-beaconchain-explorer/utils"
"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/rpctypes"
"github.com/pk910/dora-the-explorer/utils"
)

var logger_blobs = logrus.StandardLogger().WithField("module", "blobstore")
Expand Down
Loading

0 comments on commit 481165b

Please sign in to comment.