Skip to content

Commit

Permalink
feat: update package name
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Aug 21, 2024
1 parent 224eaf9 commit 1d36336
Show file tree
Hide file tree
Showing 225 changed files with 591 additions and 591 deletions.
4 changes: 2 additions & 2 deletions node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ go test ./tests -v

## Run docker-compose from local environment

- Change api service's docker image into bisonai.com/orakl/apis
- Change api service's docker image into bisonai.com/miko/apis
- And if there's `schema={}` in DB connection url in .api.env file update it into keyword `search_path={}`

# How to use DB migration tool
Expand All @@ -578,7 +578,7 @@ brew install golang-migrate

## Migrate commands

- Run commands from bisonai.com/orakl/api folder
- Run commands from bisonai.com/miko/api folder
- Write appropriate db connection url for each usecases
- Be careful on adding `sslmode=disbale`, if it has other option such as `?schema=public` add `&sslmode=disable` else add `?sslmode=disable`

Expand Down
4 changes: 2 additions & 2 deletions node/cmd/admin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"context"

"bisonai.com/orakl/node/pkg/admin"
"bisonai.com/orakl/node/pkg/bus"
"bisonai.com/miko/node/pkg/admin"
"bisonai.com/miko/node/pkg/bus"
"github.com/rs/zerolog/log"
)

Expand Down
22 changes: 11 additions & 11 deletions node/cmd/api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ import (
"context"
_ "embed"

"bisonai.com/orakl/node/pkg/api/apierr"
"bisonai.com/orakl/node/pkg/api/blocks"
"bisonai.com/orakl/node/pkg/api/chain"
"bisonai.com/orakl/node/pkg/api/listener"
"bisonai.com/orakl/node/pkg/api/proxy"
"bisonai.com/orakl/node/pkg/api/reporter"
"bisonai.com/orakl/node/pkg/api/service"
"bisonai.com/orakl/node/pkg/api/utils"
"bisonai.com/orakl/node/pkg/api/vrf"

"bisonai.com/orakl/node/pkg/logscribeconsumer"
"bisonai.com/miko/node/pkg/api/apierr"
"bisonai.com/miko/node/pkg/api/blocks"
"bisonai.com/miko/node/pkg/api/chain"
"bisonai.com/miko/node/pkg/api/listener"
"bisonai.com/miko/node/pkg/api/proxy"
"bisonai.com/miko/node/pkg/api/reporter"
"bisonai.com/miko/node/pkg/api/service"
"bisonai.com/miko/node/pkg/api/utils"
"bisonai.com/miko/node/pkg/api/vrf"

"bisonai.com/miko/node/pkg/logscribeconsumer"
"github.com/gofiber/fiber/v2"
"github.com/joho/godotenv"
"github.com/rs/zerolog/log"
Expand Down
4 changes: 2 additions & 2 deletions node/cmd/boot_api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"context"

"bisonai.com/orakl/node/pkg/boot"
"bisonai.com/orakl/node/pkg/logscribeconsumer"
"bisonai.com/miko/node/pkg/boot"
"bisonai.com/miko/node/pkg/logscribeconsumer"
"github.com/rs/zerolog/log"
)

Expand Down
4 changes: 2 additions & 2 deletions node/cmd/dal/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"context"

"bisonai.com/orakl/node/pkg/dal"
"bisonai.com/orakl/node/pkg/logscribeconsumer"
"bisonai.com/miko/node/pkg/dal"
"bisonai.com/miko/node/pkg/logscribeconsumer"
"github.com/rs/zerolog/log"
)

Expand Down
16 changes: 8 additions & 8 deletions node/cmd/delegator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import (
_ "embed"
"os"

"bisonai.com/orakl/node/pkg/logscribeconsumer"

"bisonai.com/orakl/node/pkg/delegator/contract"
"bisonai.com/orakl/node/pkg/delegator/function"
"bisonai.com/orakl/node/pkg/delegator/organization"
"bisonai.com/orakl/node/pkg/delegator/reporter"
"bisonai.com/orakl/node/pkg/delegator/sign"
"bisonai.com/orakl/node/pkg/delegator/utils"
"bisonai.com/miko/node/pkg/logscribeconsumer"

"bisonai.com/miko/node/pkg/delegator/contract"
"bisonai.com/miko/node/pkg/delegator/function"
"bisonai.com/miko/node/pkg/delegator/organization"
"bisonai.com/miko/node/pkg/delegator/reporter"
"bisonai.com/miko/node/pkg/delegator/sign"
"bisonai.com/miko/node/pkg/delegator/utils"

"github.com/gofiber/fiber/v2"
"github.com/joho/godotenv"
Expand Down
6 changes: 3 additions & 3 deletions node/cmd/fetcher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"sync"

"bisonai.com/orakl/node/pkg/admin"
"bisonai.com/orakl/node/pkg/bus"
"bisonai.com/orakl/node/pkg/fetcher"
"bisonai.com/miko/node/pkg/admin"
"bisonai.com/miko/node/pkg/bus"
"bisonai.com/miko/node/pkg/fetcher"
"github.com/rs/zerolog/log"
)

Expand Down
2 changes: 1 addition & 1 deletion node/cmd/logscribe/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"strings"

"bisonai.com/orakl/node/pkg/logscribe"
"bisonai.com/miko/node/pkg/logscribe"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
)
Expand Down
16 changes: 8 additions & 8 deletions node/cmd/node/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import (
"sync"
"time"

"bisonai.com/orakl/node/pkg/admin"
"bisonai.com/orakl/node/pkg/aggregator"
"bisonai.com/orakl/node/pkg/bus"
"bisonai.com/orakl/node/pkg/fetcher"
"bisonai.com/orakl/node/pkg/libp2p/helper"
libp2pSetup "bisonai.com/orakl/node/pkg/libp2p/setup"
"bisonai.com/orakl/node/pkg/logscribeconsumer"
"bisonai.com/orakl/node/pkg/utils/retrier"
"bisonai.com/miko/node/pkg/admin"
"bisonai.com/miko/node/pkg/aggregator"
"bisonai.com/miko/node/pkg/bus"
"bisonai.com/miko/node/pkg/fetcher"
"bisonai.com/miko/node/pkg/libp2p/helper"
libp2pSetup "bisonai.com/miko/node/pkg/libp2p/setup"
"bisonai.com/miko/node/pkg/logscribeconsumer"
"bisonai.com/miko/node/pkg/utils/retrier"
"github.com/rs/zerolog/log"
)

Expand Down
4 changes: 2 additions & 2 deletions node/cmd/por/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"context"

"bisonai.com/orakl/node/pkg/logscribeconsumer"
"bisonai.com/orakl/node/pkg/por"
"bisonai.com/miko/node/pkg/logscribeconsumer"
"bisonai.com/miko/node/pkg/por"
"github.com/rs/zerolog/log"
)

Expand Down
4 changes: 2 additions & 2 deletions node/cmd/reporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"os/signal"
"syscall"

"bisonai.com/orakl/node/pkg/logscribeconsumer"
"bisonai.com/orakl/node/pkg/reporter"
"bisonai.com/miko/node/pkg/logscribeconsumer"
"bisonai.com/miko/node/pkg/reporter"
"github.com/rs/zerolog/log"
)

Expand Down
22 changes: 11 additions & 11 deletions node/cmd/sentinel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ import (
"os"
"sync"

"bisonai.com/orakl/node/pkg/checker/balance"
// "bisonai.com/orakl/node/pkg/checker/dal"
// "bisonai.com/orakl/node/pkg/checker/dalstats"
"bisonai.com/orakl/node/pkg/checker/dbcronjob"
"bisonai.com/orakl/node/pkg/checker/event"
"bisonai.com/orakl/node/pkg/checker/health"
"bisonai.com/orakl/node/pkg/checker/inspect"
"bisonai.com/orakl/node/pkg/checker/offset"
"bisonai.com/orakl/node/pkg/checker/peers"
"bisonai.com/orakl/node/pkg/checker/signer"
"bisonai.com/orakl/node/pkg/logscribeconsumer"
"bisonai.com/miko/node/pkg/checker/balance"
// "bisonai.com/miko/node/pkg/checker/dal"
// "bisonai.com/miko/node/pkg/checker/dalstats"
"bisonai.com/miko/node/pkg/checker/dbcronjob"
"bisonai.com/miko/node/pkg/checker/event"
"bisonai.com/miko/node/pkg/checker/health"
"bisonai.com/miko/node/pkg/checker/inspect"
"bisonai.com/miko/node/pkg/checker/offset"
"bisonai.com/miko/node/pkg/checker/peers"
"bisonai.com/miko/node/pkg/checker/signer"
"bisonai.com/miko/node/pkg/logscribeconsumer"
"github.com/rs/zerolog/log"
)

Expand Down
2 changes: 1 addition & 1 deletion node/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module bisonai.com/orakl/node
module bisonai.com/miko/node

go 1.22.3

Expand Down
20 changes: 10 additions & 10 deletions node/pkg/admin/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import (
"fmt"
"os"

"bisonai.com/orakl/node/pkg/admin/aggregator"
"bisonai.com/orakl/node/pkg/admin/config"
"bisonai.com/orakl/node/pkg/admin/feed"
"bisonai.com/orakl/node/pkg/admin/fetcher"
"bisonai.com/orakl/node/pkg/admin/host"
"bisonai.com/orakl/node/pkg/admin/providerUrl"
"bisonai.com/orakl/node/pkg/admin/proxy"

"bisonai.com/orakl/node/pkg/admin/utils"
"bisonai.com/orakl/node/pkg/bus"
"bisonai.com/miko/node/pkg/admin/aggregator"
"bisonai.com/miko/node/pkg/admin/config"
"bisonai.com/miko/node/pkg/admin/feed"
"bisonai.com/miko/node/pkg/admin/fetcher"
"bisonai.com/miko/node/pkg/admin/host"
"bisonai.com/miko/node/pkg/admin/providerUrl"
"bisonai.com/miko/node/pkg/admin/proxy"

"bisonai.com/miko/node/pkg/admin/utils"
"bisonai.com/miko/node/pkg/bus"
"github.com/gofiber/fiber/v2"
"github.com/rs/zerolog/log"
)
Expand Down
8 changes: 4 additions & 4 deletions node/pkg/admin/aggregator/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"os"
"strconv"

"bisonai.com/orakl/node/pkg/admin/utils"
"bisonai.com/orakl/node/pkg/bus"
chainutils "bisonai.com/orakl/node/pkg/chain/utils"
errorsentinel "bisonai.com/orakl/node/pkg/error"
"bisonai.com/miko/node/pkg/admin/utils"
"bisonai.com/miko/node/pkg/bus"
chainutils "bisonai.com/miko/node/pkg/chain/utils"
errorsentinel "bisonai.com/miko/node/pkg/error"
"github.com/gofiber/fiber/v2"
"github.com/rs/zerolog/log"
)
Expand Down
6 changes: 3 additions & 3 deletions node/pkg/admin/config/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"strconv"
"strings"

"bisonai.com/orakl/node/pkg/admin/feed"
"bisonai.com/orakl/node/pkg/db"
"bisonai.com/orakl/node/pkg/utils/request"
"bisonai.com/miko/node/pkg/admin/feed"
"bisonai.com/miko/node/pkg/db"
"bisonai.com/miko/node/pkg/utils/request"
"github.com/gofiber/fiber/v2"
"github.com/rs/zerolog/log"
)
Expand Down
2 changes: 1 addition & 1 deletion node/pkg/admin/feed/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package feed
import (
"encoding/json"

"bisonai.com/orakl/node/pkg/db"
"bisonai.com/miko/node/pkg/db"
"github.com/gofiber/fiber/v2"
"github.com/rs/zerolog/log"
)
Expand Down
4 changes: 2 additions & 2 deletions node/pkg/admin/fetcher/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package fetcher
import (
"strconv"

"bisonai.com/orakl/node/pkg/admin/utils"
"bisonai.com/orakl/node/pkg/bus"
"bisonai.com/miko/node/pkg/admin/utils"
"bisonai.com/miko/node/pkg/bus"
"github.com/gofiber/fiber/v2"
"github.com/rs/zerolog/log"
)
Expand Down
4 changes: 2 additions & 2 deletions node/pkg/admin/host/controller.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package host

import (
"bisonai.com/orakl/node/pkg/admin/utils"
"bisonai.com/orakl/node/pkg/bus"
"bisonai.com/miko/node/pkg/admin/utils"
"bisonai.com/miko/node/pkg/bus"
"github.com/gofiber/fiber/v2"
"github.com/rs/zerolog/log"
)
Expand Down
2 changes: 1 addition & 1 deletion node/pkg/admin/providerUrl/controller.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package providerUrl

import (
"bisonai.com/orakl/node/pkg/db"
"bisonai.com/miko/node/pkg/db"
"github.com/go-playground/validator"
"github.com/gofiber/fiber/v2"
"github.com/rs/zerolog/log"
Expand Down
2 changes: 1 addition & 1 deletion node/pkg/admin/proxy/controller.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package proxy

import (
"bisonai.com/orakl/node/pkg/db"
"bisonai.com/miko/node/pkg/db"
"github.com/go-playground/validator/v10"
"github.com/gofiber/fiber/v2"
"github.com/rs/zerolog/log"
Expand Down
2 changes: 1 addition & 1 deletion node/pkg/admin/tests/aggregator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"
"testing"

"bisonai.com/orakl/node/pkg/bus"
"bisonai.com/miko/node/pkg/bus"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions node/pkg/admin/tests/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strconv"
"testing"

"bisonai.com/orakl/node/pkg/admin/config"
"bisonai.com/orakl/node/pkg/admin/feed"
"bisonai.com/miko/node/pkg/admin/config"
"bisonai.com/miko/node/pkg/admin/feed"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion node/pkg/admin/tests/feed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"
"testing"

"bisonai.com/orakl/node/pkg/admin/feed"
"bisonai.com/miko/node/pkg/admin/feed"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion node/pkg/admin/tests/fetcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"
"testing"

"bisonai.com/orakl/node/pkg/bus"
"bisonai.com/miko/node/pkg/bus"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion node/pkg/admin/tests/host_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"testing"

"bisonai.com/orakl/node/pkg/bus"
"bisonai.com/miko/node/pkg/bus"
"github.com/stretchr/testify/assert"
)

Expand Down
20 changes: 10 additions & 10 deletions node/pkg/admin/tests/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import (
"os"
"testing"

"bisonai.com/orakl/node/pkg/admin/aggregator"
"bisonai.com/orakl/node/pkg/admin/config"
"bisonai.com/orakl/node/pkg/admin/feed"
"bisonai.com/orakl/node/pkg/admin/fetcher"
"bisonai.com/orakl/node/pkg/admin/host"
"bisonai.com/orakl/node/pkg/admin/providerUrl"
"bisonai.com/orakl/node/pkg/admin/proxy"
"bisonai.com/orakl/node/pkg/admin/utils"
"bisonai.com/orakl/node/pkg/bus"
"bisonai.com/orakl/node/pkg/db"
"bisonai.com/miko/node/pkg/admin/aggregator"
"bisonai.com/miko/node/pkg/admin/config"
"bisonai.com/miko/node/pkg/admin/feed"
"bisonai.com/miko/node/pkg/admin/fetcher"
"bisonai.com/miko/node/pkg/admin/host"
"bisonai.com/miko/node/pkg/admin/providerUrl"
"bisonai.com/miko/node/pkg/admin/proxy"
"bisonai.com/miko/node/pkg/admin/utils"
"bisonai.com/miko/node/pkg/bus"
"bisonai.com/miko/node/pkg/db"
"github.com/gofiber/fiber/v2"
)

Expand Down
4 changes: 2 additions & 2 deletions node/pkg/admin/tests/providerUrl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strconv"
"testing"

"bisonai.com/orakl/node/pkg/admin/providerUrl"
"bisonai.com/orakl/node/pkg/db"
"bisonai.com/miko/node/pkg/admin/providerUrl"
"bisonai.com/miko/node/pkg/db"
"github.com/stretchr/testify/assert"
)

Expand Down
Loading

0 comments on commit 1d36336

Please sign in to comment.