Skip to content

Commit

Permalink
Change package name
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Feb 1, 2024
1 parent 863a5c9 commit fa2c60a
Show file tree
Hide file tree
Showing 150 changed files with 322 additions and 322 deletions.
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/aopoltorzhicky/astria/
RUN mkdir -p $GOPATH/src/github.com/celenium-io/astria-indexer/

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

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

WORKDIR $GOPATH/src/github.com/aopoltorzhicky/astria/cmd/api/
WORKDIR $GOPATH/src/github.com/celenium-io/astria-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/aopoltorzhicky/astria/
RUN mkdir -p $GOPATH/src/github.com/celenium-io/astria-indexer/

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

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

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

# ---------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion cmd/api/bus/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strconv"
"sync"

"github.com/aopoltorzhicky/astria/internal/storage"
"github.com/celenium-io/astria-indexer/internal/storage"
"github.com/dipdup-io/workerpool"
"github.com/lib/pq"
"github.com/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion cmd/api/bus/observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package bus

import (
"github.com/aopoltorzhicky/astria/internal/storage"
"github.com/celenium-io/astria-indexer/internal/storage"
"github.com/dipdup-io/workerpool"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/api/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http"
"sync"

"github.com/aopoltorzhicky/astria/cmd/api/bus"
"github.com/celenium-io/astria-indexer/cmd/api/bus"
"github.com/dipdup-io/workerpool"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
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/aopoltorzhicky/astria/internal/profiler"
indexerConfig "github.com/aopoltorzhicky/astria/pkg/indexer/config"
"github.com/celenium-io/astria-indexer/internal/profiler"
indexerConfig "github.com/celenium-io/astria-indexer/pkg/indexer/config"
"github.com/dipdup-net/go-lib/config"
)

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

"github.com/aopoltorzhicky/astria/cmd/api/handler/responses"
"github.com/aopoltorzhicky/astria/internal/storage"
storageTypes "github.com/aopoltorzhicky/astria/internal/storage/types"
"github.com/celenium-io/astria-indexer/cmd/api/handler/responses"
"github.com/celenium-io/astria-indexer/internal/storage"
storageTypes "github.com/celenium-io/astria-indexer/internal/storage/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 @@ -11,10 +11,10 @@ import (
"net/url"
"testing"

"github.com/aopoltorzhicky/astria/cmd/api/handler/responses"
"github.com/aopoltorzhicky/astria/internal/storage"
"github.com/aopoltorzhicky/astria/internal/storage/mock"
"github.com/aopoltorzhicky/astria/internal/storage/types"
"github.com/celenium-io/astria-indexer/cmd/api/handler/responses"
"github.com/celenium-io/astria-indexer/internal/storage"
"github.com/celenium-io/astria-indexer/internal/storage/mock"
"github.com/celenium-io/astria-indexer/internal/storage/types"
sdk "github.com/dipdup-net/indexer-sdk/pkg/storage"
"github.com/labstack/echo/v4"
"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 @@ -6,10 +6,10 @@ package handler
import (
"net/http"

"github.com/aopoltorzhicky/astria/pkg/types"
"github.com/celenium-io/astria-indexer/pkg/types"

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

Expand Down
14 changes: 7 additions & 7 deletions cmd/api/handler/block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ import (
"net/url"
"testing"

pkgTypes "github.com/aopoltorzhicky/astria/pkg/types"
pkgTypes "github.com/celenium-io/astria-indexer/pkg/types"
"github.com/shopspring/decimal"

"github.com/aopoltorzhicky/astria/cmd/api/handler/responses"
"github.com/aopoltorzhicky/astria/internal/currency"
"github.com/aopoltorzhicky/astria/internal/storage"
"github.com/aopoltorzhicky/astria/internal/storage/mock"
"github.com/aopoltorzhicky/astria/internal/storage/types"
testsuite "github.com/aopoltorzhicky/astria/internal/test_suite"
"github.com/celenium-io/astria-indexer/cmd/api/handler/responses"
"github.com/celenium-io/astria-indexer/internal/currency"
"github.com/celenium-io/astria-indexer/internal/storage"
"github.com/celenium-io/astria-indexer/internal/storage/mock"
"github.com/celenium-io/astria-indexer/internal/storage/types"
testsuite "github.com/celenium-io/astria-indexer/internal/test_suite"
"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/aopoltorzhicky/astria/cmd/api/handler/responses"
"github.com/aopoltorzhicky/astria/internal/storage"
"github.com/celenium-io/astria-indexer/cmd/api/handler/responses"
"github.com/celenium-io/astria-indexer/internal/storage"
"github.com/labstack/echo/v4"
)

Expand Down
6 changes: 3 additions & 3 deletions cmd/api/handler/constant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"net/http/httptest"
"testing"

"github.com/aopoltorzhicky/astria/cmd/api/handler/responses"
"github.com/aopoltorzhicky/astria/internal/storage"
"github.com/aopoltorzhicky/astria/internal/storage/mock"
"github.com/celenium-io/astria-indexer/cmd/api/handler/responses"
"github.com/celenium-io/astria-indexer/internal/storage"
"github.com/celenium-io/astria-indexer/internal/storage/mock"
"github.com/labstack/echo/v4"
"github.com/stretchr/testify/suite"
"go.uber.org/mock/gomock"
Expand Down
6 changes: 3 additions & 3 deletions cmd/api/handler/responses/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"encoding/hex"
"time"

"github.com/aopoltorzhicky/astria/internal/storage"
"github.com/aopoltorzhicky/astria/internal/storage/types"
pkgTypes "github.com/aopoltorzhicky/astria/pkg/types"
"github.com/celenium-io/astria-indexer/internal/storage"
"github.com/celenium-io/astria-indexer/internal/storage/types"
pkgTypes "github.com/celenium-io/astria-indexer/pkg/types"
)

type Action struct {
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 @@ -6,8 +6,8 @@ package responses
import (
"encoding/hex"

"github.com/aopoltorzhicky/astria/internal/storage"
pkgTypes "github.com/aopoltorzhicky/astria/pkg/types"
"github.com/celenium-io/astria-indexer/internal/storage"
pkgTypes "github.com/celenium-io/astria-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/aopoltorzhicky/astria/internal/storage"
"github.com/aopoltorzhicky/astria/internal/storage/types"
pkgTypes "github.com/aopoltorzhicky/astria/pkg/types"
"github.com/celenium-io/astria-indexer/internal/storage"
"github.com/celenium-io/astria-indexer/internal/storage/types"
pkgTypes "github.com/celenium-io/astria-indexer/pkg/types"
)

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

import (
"github.com/aopoltorzhicky/astria/internal/storage"
"github.com/aopoltorzhicky/astria/internal/storage/types"
"github.com/celenium-io/astria-indexer/internal/storage"
"github.com/celenium-io/astria-indexer/internal/storage/types"
"github.com/shopspring/decimal"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/api/handler/responses/rollup.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package responses
import (
"encoding/hex"

"github.com/aopoltorzhicky/astria/internal/storage"
"github.com/aopoltorzhicky/astria/pkg/types"
"github.com/celenium-io/astria-indexer/internal/storage"
"github.com/celenium-io/astria-indexer/pkg/types"
)

type Rollup struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/api/handler/responses/rollup_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

package responses

import "github.com/aopoltorzhicky/astria/internal/storage"
import "github.com/celenium-io/astria-indexer/internal/storage"

type RollupAction struct {
Action
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 @@ -7,9 +7,9 @@ import (
"encoding/hex"
"time"

pkgTypes "github.com/aopoltorzhicky/astria/pkg/types"
pkgTypes "github.com/celenium-io/astria-indexer/pkg/types"

"github.com/aopoltorzhicky/astria/internal/storage"
"github.com/celenium-io/astria-indexer/internal/storage"
)

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

"github.com/aopoltorzhicky/astria/internal/storage"
"github.com/celenium-io/astria-indexer/internal/storage"
)

type SeriesItem 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 @@ -7,10 +7,10 @@ import (
"encoding/hex"
"time"

pkgTypes "github.com/aopoltorzhicky/astria/pkg/types"
pkgTypes "github.com/celenium-io/astria-indexer/pkg/types"

"github.com/aopoltorzhicky/astria/internal/storage"
"github.com/aopoltorzhicky/astria/internal/storage/types"
"github.com/celenium-io/astria-indexer/internal/storage"
"github.com/celenium-io/astria-indexer/internal/storage/types"
)

type Tx struct {
Expand Down
4 changes: 2 additions & 2 deletions cmd/api/handler/responses/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package responses
import (
"fmt"

"github.com/aopoltorzhicky/astria/internal/storage"
"github.com/aopoltorzhicky/astria/pkg/types"
"github.com/celenium-io/astria-indexer/internal/storage"
"github.com/celenium-io/astria-indexer/pkg/types"
)

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

"github.com/aopoltorzhicky/astria/pkg/types"
"github.com/celenium-io/astria-indexer/pkg/types"
"github.com/stretchr/testify/require"
)

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

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

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

"github.com/aopoltorzhicky/astria/cmd/api/handler/responses"
"github.com/aopoltorzhicky/astria/internal/storage"
"github.com/aopoltorzhicky/astria/internal/storage/mock"
"github.com/aopoltorzhicky/astria/internal/storage/types"
"github.com/celenium-io/astria-indexer/cmd/api/handler/responses"
"github.com/celenium-io/astria-indexer/internal/storage"
"github.com/celenium-io/astria-indexer/internal/storage/mock"
"github.com/celenium-io/astria-indexer/internal/storage/types"
sdk "github.com/dipdup-net/indexer-sdk/pkg/storage"
"github.com/labstack/echo/v4"
"github.com/stretchr/testify/suite"
Expand Down
4 changes: 2 additions & 2 deletions cmd/api/handler/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package handler
import (
"encoding/hex"

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

Expand Down
6 changes: 3 additions & 3 deletions cmd/api/handler/search_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"net/url"
"testing"

"github.com/aopoltorzhicky/astria/cmd/api/handler/responses"
"github.com/aopoltorzhicky/astria/internal/storage"
"github.com/aopoltorzhicky/astria/internal/storage/mock"
"github.com/celenium-io/astria-indexer/cmd/api/handler/responses"
"github.com/celenium-io/astria-indexer/internal/storage"
"github.com/celenium-io/astria-indexer/internal/storage/mock"
"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/aopoltorzhicky/astria/cmd/api/handler/responses"
"github.com/aopoltorzhicky/astria/internal/storage"
"github.com/celenium-io/astria-indexer/cmd/api/handler/responses"
"github.com/celenium-io/astria-indexer/internal/storage"
sdk "github.com/dipdup-net/indexer-sdk/pkg/storage"
"github.com/labstack/echo/v4"
)
Expand Down
6 changes: 3 additions & 3 deletions cmd/api/handler/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"testing"
"time"

"github.com/aopoltorzhicky/astria/cmd/api/handler/responses"
"github.com/aopoltorzhicky/astria/internal/storage"
"github.com/aopoltorzhicky/astria/internal/storage/mock"
"github.com/celenium-io/astria-indexer/cmd/api/handler/responses"
"github.com/celenium-io/astria-indexer/internal/storage"
"github.com/celenium-io/astria-indexer/internal/storage/mock"
"github.com/labstack/echo/v4"
"github.com/shopspring/decimal"
"github.com/stretchr/testify/suite"
Expand Down
4 changes: 2 additions & 2 deletions cmd/api/handler/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"encoding/hex"
"net/http"

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

Expand Down
6 changes: 3 additions & 3 deletions cmd/api/handler/stats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"net/http/httptest"
"testing"

"github.com/aopoltorzhicky/astria/cmd/api/handler/responses"
"github.com/aopoltorzhicky/astria/internal/storage"
"github.com/aopoltorzhicky/astria/internal/storage/mock"
"github.com/celenium-io/astria-indexer/cmd/api/handler/responses"
"github.com/celenium-io/astria-indexer/internal/storage"
"github.com/celenium-io/astria-indexer/internal/storage/mock"
"github.com/labstack/echo/v4"
"github.com/shopspring/decimal"
"github.com/stretchr/testify/suite"
Expand Down
Loading

0 comments on commit fa2c60a

Please sign in to comment.