Skip to content

Commit

Permalink
updated links in badges (#1)
Browse files Browse the repository at this point in the history
* updated links in badges

* CLS-102 removed HEADER file to clead identification of its content in commit history

* CLS-102 updated fossa license shield

* CLS-102 updated module name

* updated Dockerfiles

* updated README with note for Celenium

* fix linter error
  • Loading branch information
vvuwei authored Oct 24, 2023
1 parent 24865f3 commit 53aa217
Show file tree
Hide file tree
Showing 181 changed files with 440 additions and 442 deletions.
2 changes: 0 additions & 2 deletions HEADER

This file was deleted.

12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fdipdup-io%2Fcelestia-indexer.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fdipdup-io%2Fcelestia-indexer?ref=badge_shield)
[![Build Status](https://github.com/dipdup-io/celestia-indexer/workflows/Build/badge.svg)](https://github.com/dipdup-io/celestia-indexer/actions?query=branch%3Amaster+workflow%3A%22Build%22)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcelenium-io%2Fcelestia-indexer.svg?type=shield&issueType=license)](https://app.fossa.com/projects/git%2Bgithub.com%2Fcelenium-io%2Fcelestia-indexer?ref=badge_shield&issueType=license)
[![Build Status](https://github.com/celenium-io/celestia-indexer/workflows/Build/badge.svg)](https://github.com/celenium-io/celestia-indexer/actions?query=branch%3Amaster+workflow%3A%22Build%22)
[![made_with golang](https://img.shields.io/badge/made_with-golang-blue.svg)](https://golang.org/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Go Coverage](https://github.com/dipdup-io/celestia-indexer/wiki/coverage.svg)](https://raw.githack.com/wiki/dipdup-io/celestia-indexer/coverage.html)
[![Go Coverage](https://github.com/celenium-io/celestia-indexer/wiki/coverage.svg)](https://raw.githack.com/wiki/celenium-io/celestia-indexer/coverage.html)

# Celestia Indexer #
# Celestia Indexer | Celenium #

This is an indexing layer for Celestia DA written in Golang that operates on top of the [Celestia Full node](https://docs.celestia.org/nodes/consensus-full-node/) and stores data in a Postgres database.

Expand All @@ -20,7 +20,7 @@ This is an indexing layer for Celestia DA written in Golang that operates on top
## Indexed entities ##

- Blocks
- Transactions
- Transactions
- Balance updates (block rewards, gov-triggered issuance/burn, other events)
- Header
- Stats
Expand All @@ -39,4 +39,4 @@ This is an indexing layer for Celestia DA written in Golang that operates on top


## License
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fdipdup-io%2Fcelestia-indexer.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fdipdup-io%2Fcelestia-indexer?ref=badge_large)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcelenium-io%2Fcelestia-indexer.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fcelenium-io%2Fcelestia-indexer?ref=badge_large)
8 changes: 4 additions & 4 deletions build/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ ENV GOOS=linux
RUN apk --no-cache add ca-certificates
RUN apk add --update git

RUN mkdir -p $GOPATH/src/github.com/dipdup-io/celestia-indexer/
RUN mkdir -p $GOPATH/src/github.com/celenium-io/celestia-indexer/

COPY ./go.* $GOPATH/src/github.com/dipdup-io/celestia-indexer/
WORKDIR $GOPATH/src/github.com/dipdup-io/celestia-indexer
COPY ./go.* $GOPATH/src/github.com/celenium-io/celestia-indexer/
WORKDIR $GOPATH/src/github.com/celenium-io/celestia-indexer
RUN go mod download

COPY cmd/api cmd/api
COPY internal internal
COPY pkg pkg

WORKDIR $GOPATH/src/github.com/dipdup-io/celestia-indexer/cmd/api/
WORKDIR $GOPATH/src/github.com/celenium-io/celestia-indexer/cmd/api/
RUN go build -a -installsuffix cgo -o /go/bin/api .

# ---------------------------------------------------------------------
Expand Down
8 changes: 4 additions & 4 deletions build/indexer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ ENV GOOS=linux
RUN apk --no-cache add ca-certificates
RUN apk add --update git musl-dev gcc build-base

RUN mkdir -p $GOPATH/src/github.com/dipdup-io/celestia-indexer/
RUN mkdir -p $GOPATH/src/github.com/celenium-io/celestia-indexer/

COPY ./go.* $GOPATH/src/github.com/dipdup-io/celestia-indexer/
WORKDIR $GOPATH/src/github.com/dipdup-io/celestia-indexer
COPY ./go.* $GOPATH/src/github.com/celenium-io/celestia-indexer/
WORKDIR $GOPATH/src/github.com/celenium-io/celestia-indexer
RUN go mod download

COPY cmd/indexer cmd/indexer
COPY internal internal
COPY pkg pkg

WORKDIR $GOPATH/src/github.com/dipdup-io/celestia-indexer/cmd/indexer/
WORKDIR $GOPATH/src/github.com/celenium-io/celestia-indexer/cmd/indexer/
RUN go build -a -o /go/bin/indexer .

# ---------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions cmd/api/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
package main

import (
"github.com/dipdup-io/celestia-indexer/internal/profiler"
indexerConfig "github.com/dipdup-io/celestia-indexer/pkg/indexer/config"
"github.com/celenium-io/celestia-indexer/internal/profiler"
indexerConfig "github.com/celenium-io/celestia-indexer/pkg/indexer/config"
"github.com/dipdup-net/go-lib/config"
)

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

"github.com/dipdup-io/celestia-indexer/cmd/api/handler/responses"
"github.com/dipdup-io/celestia-indexer/internal/storage"
_ "github.com/dipdup-io/celestia-indexer/internal/storage/types"
"github.com/dipdup-io/celestia-indexer/pkg/types"
"github.com/celenium-io/celestia-indexer/cmd/api/handler/responses"
"github.com/celenium-io/celestia-indexer/internal/storage"
_ "github.com/celenium-io/celestia-indexer/internal/storage/types"
"github.com/celenium-io/celestia-indexer/pkg/types"
"github.com/labstack/echo/v4"
)

Expand Down
8 changes: 4 additions & 4 deletions cmd/api/handler/address_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (
"strings"
"testing"

"github.com/dipdup-io/celestia-indexer/cmd/api/handler/responses"
"github.com/dipdup-io/celestia-indexer/internal/storage"
"github.com/dipdup-io/celestia-indexer/internal/storage/mock"
"github.com/dipdup-io/celestia-indexer/internal/storage/types"
"github.com/celenium-io/celestia-indexer/cmd/api/handler/responses"
"github.com/celenium-io/celestia-indexer/internal/storage"
"github.com/celenium-io/celestia-indexer/internal/storage/mock"
"github.com/celenium-io/celestia-indexer/internal/storage/types"
"github.com/labstack/echo/v4"
"github.com/shopspring/decimal"
"github.com/stretchr/testify/suite"
Expand Down
6 changes: 3 additions & 3 deletions cmd/api/handler/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
package handler

import (
"github.com/dipdup-io/celestia-indexer/pkg/types"
"github.com/celenium-io/celestia-indexer/pkg/types"
"net/http"

"github.com/dipdup-io/celestia-indexer/cmd/api/handler/responses"
"github.com/dipdup-io/celestia-indexer/internal/storage"
"github.com/celenium-io/celestia-indexer/cmd/api/handler/responses"
"github.com/celenium-io/celestia-indexer/internal/storage"
"github.com/labstack/echo/v4"
)

Expand Down
10 changes: 5 additions & 5 deletions cmd/api/handler/block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ package handler
import (
"context"
"encoding/json"
pkgTypes "github.com/dipdup-io/celestia-indexer/pkg/types"
pkgTypes "github.com/celenium-io/celestia-indexer/pkg/types"
"net/http"
"net/http/httptest"
"net/url"
"testing"
"time"

"github.com/dipdup-io/celestia-indexer/cmd/api/handler/responses"
"github.com/dipdup-io/celestia-indexer/internal/storage"
"github.com/dipdup-io/celestia-indexer/internal/storage/mock"
"github.com/dipdup-io/celestia-indexer/internal/storage/types"
"github.com/celenium-io/celestia-indexer/cmd/api/handler/responses"
"github.com/celenium-io/celestia-indexer/internal/storage"
"github.com/celenium-io/celestia-indexer/internal/storage/mock"
"github.com/celenium-io/celestia-indexer/internal/storage/types"
"github.com/labstack/echo/v4"
"github.com/stretchr/testify/suite"
"go.uber.org/mock/gomock"
Expand Down
4 changes: 2 additions & 2 deletions cmd/api/handler/constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package handler
import (
"net/http"

"github.com/dipdup-io/celestia-indexer/cmd/api/handler/responses"
"github.com/dipdup-io/celestia-indexer/internal/storage"
"github.com/celenium-io/celestia-indexer/cmd/api/handler/responses"
"github.com/celenium-io/celestia-indexer/internal/storage"
"github.com/labstack/echo/v4"
)

Expand Down
8 changes: 4 additions & 4 deletions cmd/api/handler/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ package handler
import (
"encoding/base64"
"encoding/hex"
"github.com/dipdup-io/celestia-indexer/pkg/types"
"github.com/celenium-io/celestia-indexer/pkg/types"
"net/http"

"github.com/dipdup-io/celestia-indexer/cmd/api/handler/responses"
"github.com/dipdup-io/celestia-indexer/internal/storage"
"github.com/dipdup-io/celestia-indexer/pkg/node"
"github.com/celenium-io/celestia-indexer/cmd/api/handler/responses"
"github.com/celenium-io/celestia-indexer/internal/storage"
"github.com/celenium-io/celestia-indexer/pkg/node"
"github.com/labstack/echo/v4"
"github.com/pkg/errors"
)
Expand Down
14 changes: 7 additions & 7 deletions cmd/api/handler/namespace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ import (
"crypto/rand"
"encoding/base64"
"encoding/json"
pkgTypes "github.com/dipdup-io/celestia-indexer/pkg/types"
pkgTypes "github.com/celenium-io/celestia-indexer/pkg/types"
"net/http"
"net/http/httptest"
"testing"

"github.com/dipdup-io/celestia-indexer/cmd/api/handler/responses"
"github.com/dipdup-io/celestia-indexer/internal/storage"
"github.com/dipdup-io/celestia-indexer/internal/storage/mock"
"github.com/dipdup-io/celestia-indexer/internal/storage/types"
nodeMock "github.com/dipdup-io/celestia-indexer/pkg/node/mock"
nodeTypes "github.com/dipdup-io/celestia-indexer/pkg/node/types"
"github.com/celenium-io/celestia-indexer/cmd/api/handler/responses"
"github.com/celenium-io/celestia-indexer/internal/storage"
"github.com/celenium-io/celestia-indexer/internal/storage/mock"
"github.com/celenium-io/celestia-indexer/internal/storage/types"
nodeMock "github.com/celenium-io/celestia-indexer/pkg/node/mock"
nodeTypes "github.com/celenium-io/celestia-indexer/pkg/node/types"
"github.com/labstack/echo/v4"
"github.com/stretchr/testify/suite"
"go.uber.org/mock/gomock"
Expand Down
2 changes: 1 addition & 1 deletion cmd/api/handler/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package handler

import (
pkgTypes "github.com/dipdup-io/celestia-indexer/pkg/types"
pkgTypes "github.com/celenium-io/celestia-indexer/pkg/types"
"strings"

"github.com/dipdup-net/indexer-sdk/pkg/storage"
Expand Down
4 changes: 2 additions & 2 deletions cmd/api/handler/responses/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
package responses

import (
"github.com/dipdup-io/celestia-indexer/internal/storage"
pkgTypes "github.com/dipdup-io/celestia-indexer/pkg/types"
"github.com/celenium-io/celestia-indexer/internal/storage"
pkgTypes "github.com/celenium-io/celestia-indexer/pkg/types"
)

// Address model info
Expand Down
6 changes: 3 additions & 3 deletions cmd/api/handler/responses/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"strconv"
"time"

"github.com/dipdup-io/celestia-indexer/internal/storage"
"github.com/dipdup-io/celestia-indexer/internal/storage/types"
pkgTypes "github.com/dipdup-io/celestia-indexer/pkg/types"
"github.com/celenium-io/celestia-indexer/internal/storage"
"github.com/celenium-io/celestia-indexer/internal/storage/types"
pkgTypes "github.com/celenium-io/celestia-indexer/pkg/types"
)

type Block struct {
Expand Down
4 changes: 2 additions & 2 deletions cmd/api/handler/responses/block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
package responses

import (
"github.com/dipdup-io/celestia-indexer/internal/storage"
storageTypes "github.com/dipdup-io/celestia-indexer/internal/storage/types"
"github.com/celenium-io/celestia-indexer/internal/storage"
storageTypes "github.com/celenium-io/celestia-indexer/internal/storage/types"
"github.com/shopspring/decimal"
"github.com/stretchr/testify/assert"
"reflect"
Expand Down
2 changes: 1 addition & 1 deletion cmd/api/handler/responses/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package responses

import (
"github.com/dipdup-io/celestia-indexer/internal/storage"
"github.com/celenium-io/celestia-indexer/internal/storage"
"github.com/goccy/go-json"
)

Expand Down
6 changes: 3 additions & 3 deletions cmd/api/handler/responses/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
package responses

import (
pkgTypes "github.com/dipdup-io/celestia-indexer/pkg/types"
pkgTypes "github.com/celenium-io/celestia-indexer/pkg/types"
"time"

"github.com/dipdup-io/celestia-indexer/internal/storage"
"github.com/dipdup-io/celestia-indexer/internal/storage/types"
"github.com/celenium-io/celestia-indexer/internal/storage"
"github.com/celenium-io/celestia-indexer/internal/storage/types"
)

type Event struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/api/handler/responses/histogram.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package responses
import (
"time"

"github.com/dipdup-io/celestia-indexer/internal/storage"
"github.com/celenium-io/celestia-indexer/internal/storage"
)

type HistogramItem struct {
Expand Down
6 changes: 3 additions & 3 deletions cmd/api/handler/responses/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ package responses
import (
"time"

"github.com/dipdup-io/celestia-indexer/internal/storage"
"github.com/dipdup-io/celestia-indexer/internal/storage/types"
pkgTypes "github.com/dipdup-io/celestia-indexer/pkg/types"
"github.com/celenium-io/celestia-indexer/internal/storage"
"github.com/celenium-io/celestia-indexer/internal/storage/types"
pkgTypes "github.com/celenium-io/celestia-indexer/pkg/types"
)

type Message struct {
Expand Down
4 changes: 2 additions & 2 deletions cmd/api/handler/responses/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ package responses

import (
"encoding/hex"
pkgTypes "github.com/dipdup-io/celestia-indexer/pkg/types"
pkgTypes "github.com/celenium-io/celestia-indexer/pkg/types"
"time"

"github.com/dipdup-io/celestia-indexer/internal/storage"
"github.com/celenium-io/celestia-indexer/internal/storage"
)

type Namespace struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/api/handler/responses/namespace_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package responses
import (
"time"

"github.com/dipdup-io/celestia-indexer/internal/storage"
"github.com/celenium-io/celestia-indexer/internal/storage"
"github.com/pkg/errors"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/api/handler/responses/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ package responses

import (
"encoding/hex"
pkgTypes "github.com/dipdup-io/celestia-indexer/pkg/types"
pkgTypes "github.com/celenium-io/celestia-indexer/pkg/types"
"time"

"github.com/dipdup-io/celestia-indexer/internal/storage"
"github.com/celenium-io/celestia-indexer/internal/storage"
)

type State struct {
Expand Down
6 changes: 3 additions & 3 deletions cmd/api/handler/responses/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ package responses

import (
"encoding/hex"
pkgTypes "github.com/dipdup-io/celestia-indexer/pkg/types"
pkgTypes "github.com/celenium-io/celestia-indexer/pkg/types"
"time"

"github.com/dipdup-io/celestia-indexer/internal/storage"
"github.com/dipdup-io/celestia-indexer/internal/storage/types"
"github.com/celenium-io/celestia-indexer/internal/storage"
"github.com/celenium-io/celestia-indexer/internal/storage/types"
)

type Tx struct {
Expand Down
6 changes: 3 additions & 3 deletions cmd/api/handler/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"net/http"
"regexp"

"github.com/dipdup-io/celestia-indexer/cmd/api/handler/responses"
"github.com/dipdup-io/celestia-indexer/internal/storage"
"github.com/dipdup-io/celestia-indexer/pkg/types"
"github.com/celenium-io/celestia-indexer/cmd/api/handler/responses"
"github.com/celenium-io/celestia-indexer/internal/storage"
"github.com/celenium-io/celestia-indexer/pkg/types"
"github.com/labstack/echo/v4"
"github.com/pkg/errors"
)
Expand Down
8 changes: 4 additions & 4 deletions cmd/api/handler/search_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
"strings"
"testing"

"github.com/dipdup-io/celestia-indexer/cmd/api/handler/responses"
"github.com/dipdup-io/celestia-indexer/internal/storage"
"github.com/dipdup-io/celestia-indexer/internal/storage/mock"
"github.com/dipdup-io/celestia-indexer/internal/storage/types"
"github.com/celenium-io/celestia-indexer/cmd/api/handler/responses"
"github.com/celenium-io/celestia-indexer/internal/storage"
"github.com/celenium-io/celestia-indexer/internal/storage/mock"
"github.com/celenium-io/celestia-indexer/internal/storage/types"
"github.com/labstack/echo/v4"
"github.com/stretchr/testify/suite"
"go.uber.org/mock/gomock"
Expand Down
4 changes: 2 additions & 2 deletions cmd/api/handler/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package handler
import (
"net/http"

"github.com/dipdup-io/celestia-indexer/cmd/api/handler/responses"
"github.com/dipdup-io/celestia-indexer/internal/storage"
"github.com/celenium-io/celestia-indexer/cmd/api/handler/responses"
"github.com/celenium-io/celestia-indexer/internal/storage"
sdk "github.com/dipdup-net/indexer-sdk/pkg/storage"
"github.com/labstack/echo/v4"
)
Expand Down
Loading

0 comments on commit 53aa217

Please sign in to comment.