Skip to content

Commit

Permalink
refactor: libsv -> bitcoin-sv
Browse files Browse the repository at this point in the history
  • Loading branch information
jadwahab committed Apr 26, 2022
1 parent 29fdc1b commit 311d4ea
Show file tree
Hide file tree
Showing 16 changed files with 38 additions and 38 deletions.
26 changes: 13 additions & 13 deletions cmd/internal/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@ import (
"net/http"
"time"

dppProxy "github.com/bitcoin-sv/dp3"
"github.com/bitcoin-sv/dp3/data"
"github.com/bitcoin-sv/dp3/data/payd"
"github.com/bitcoin-sv/dp3/data/sockets"
"github.com/bitcoin-sv/dp3/docs"
"github.com/bitcoin-sv/dp3/log"
dppHandlers "github.com/bitcoin-sv/dp3/transports/http"
dppMiddleware "github.com/bitcoin-sv/dp3/transports/http/middleware"
dppSoc "github.com/bitcoin-sv/dp3/transports/sockets"
"github.com/gorilla/websocket"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
dppProxy "github.com/libsv/dp3"
"github.com/libsv/dp3/data"
"github.com/libsv/dp3/data/payd"
"github.com/libsv/dp3/data/sockets"
"github.com/libsv/dp3/docs"
"github.com/libsv/dp3/log"
dppHandlers "github.com/libsv/dp3/transports/http"
dppMiddleware "github.com/libsv/dp3/transports/http/middleware"
dppSoc "github.com/libsv/dp3/transports/sockets"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/spf13/viper"
echoSwagger "github.com/swaggo/echo-swagger"
smw "github.com/theflyingcodr/sockets/middleware"
"github.com/theflyingcodr/sockets/server"

"github.com/libsv/dp3/config"
"github.com/libsv/dp3/data/noop"
socData "github.com/libsv/dp3/data/sockets"
"github.com/libsv/dp3/service"
"github.com/bitcoin-sv/dp3/config"
"github.com/bitcoin-sv/dp3/data/noop"
socData "github.com/bitcoin-sv/dp3/data/sockets"
"github.com/bitcoin-sv/dp3/service"
"github.com/libsv/go-dpp"
)

Expand Down
6 changes: 3 additions & 3 deletions cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"os/signal"
"time"

"github.com/libsv/dp3/cmd/internal"
"github.com/libsv/dp3/config"
"github.com/libsv/dp3/log"
"github.com/bitcoin-sv/dp3/cmd/internal"
"github.com/bitcoin-sv/dp3/config"
"github.com/bitcoin-sv/dp3/log"
)

const appname = "payment-protocol-rest-server"
Expand Down
2 changes: 1 addition & 1 deletion data/http_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"io/ioutil"
"net/http"

server "github.com/libsv/dp3"
server "github.com/bitcoin-sv/dp3"
"github.com/pkg/errors"
validator "github.com/theflyingcodr/govalidator"
"github.com/theflyingcodr/lathos/errs"
Expand Down
2 changes: 1 addition & 1 deletion data/noop/noop.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"time"

"github.com/libsv/dp3/log"
"github.com/bitcoin-sv/dp3/log"
"github.com/libsv/go-bt/v2"
"github.com/libsv/go-bt/v2/bscript"

Expand Down
6 changes: 3 additions & 3 deletions data/payd/payd.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"github.com/libsv/go-bk/envelope"
"github.com/pkg/errors"

"github.com/libsv/dp3/config"
"github.com/libsv/dp3/data"
"github.com/libsv/dp3/data/payd/models"
"github.com/bitcoin-sv/dp3/config"
"github.com/bitcoin-sv/dp3/data"
"github.com/bitcoin-sv/dp3/data/payd/models"
"github.com/libsv/go-dpp"
)

Expand Down
8 changes: 4 additions & 4 deletions data/payd/payd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"testing"
"time"

"github.com/libsv/dp3/config"
"github.com/libsv/dp3/data/payd"
"github.com/libsv/dp3/data/payd/models"
"github.com/libsv/dp3/mocks"
"github.com/bitcoin-sv/dp3/config"
"github.com/bitcoin-sv/dp3/data/payd"
"github.com/bitcoin-sv/dp3/data/payd/models"
"github.com/bitcoin-sv/dp3/mocks"
"github.com/libsv/go-bt/v2"
"github.com/libsv/go-bt/v2/bscript"
"github.com/libsv/go-dpp"
Expand Down
2 changes: 1 addition & 1 deletion data/sockets/payd.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"time"

server "github.com/bitcoin-sv/dp3"
"github.com/google/uuid"
server "github.com/libsv/dp3"
"github.com/libsv/go-bk/envelope"
"github.com/pkg/errors"
"github.com/theflyingcodr/lathos/errs"
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/libsv/dp3
module github.com/bitcoin-sv/dp3

go 1.17

Expand Down
2 changes: 1 addition & 1 deletion log/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package log

import (
"github.com/libsv/dp3/config"
"github.com/bitcoin-sv/dp3/config"
"github.com/pkg/errors"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
Expand Down
2 changes: 1 addition & 1 deletion mocks/http_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion service/payment.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package service
import (
"context"

"github.com/libsv/dp3/log"
"github.com/bitcoin-sv/dp3/log"
"github.com/libsv/go-dpp"
)

Expand Down
4 changes: 2 additions & 2 deletions service/payment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"errors"
"testing"

"github.com/libsv/dp3/log"
"github.com/libsv/dp3/service"
"github.com/bitcoin-sv/dp3/log"
"github.com/bitcoin-sv/dp3/service"
"github.com/libsv/go-bc/spv"
"github.com/libsv/go-dpp"
dppMocks "github.com/libsv/go-dpp/mocks"
Expand Down
2 changes: 1 addition & 1 deletion service/paymentrequest_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net/url"

"github.com/libsv/dp3/config"
"github.com/bitcoin-sv/dp3/config"
"github.com/libsv/go-dpp"
"github.com/pkg/errors"
validator "github.com/theflyingcodr/govalidator"
Expand Down
2 changes: 1 addition & 1 deletion service/paymentrequest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"github.com/libsv/dp3/service"
"github.com/bitcoin-sv/dp3/service"
"github.com/libsv/go-bt/v2/bscript"
"github.com/libsv/go-dpp"
dppMocks "github.com/libsv/go-dpp/mocks"
Expand Down
4 changes: 2 additions & 2 deletions transports/http/middleware/error_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"errors"
"net/http"

server "github.com/bitcoin-sv/dp3"
"github.com/bitcoin-sv/dp3/log"
"github.com/labstack/echo/v4"
server "github.com/libsv/dp3"
"github.com/libsv/dp3/log"
validator "github.com/theflyingcodr/govalidator"
"github.com/theflyingcodr/lathos"
"github.com/theflyingcodr/lathos/errs"
Expand Down
4 changes: 2 additions & 2 deletions transports/http/middleware/error_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"net/http/httptest"
"testing"

"github.com/bitcoin-sv/dp3/log"
"github.com/bitcoin-sv/dp3/transports/http/middleware"
"github.com/labstack/echo/v4"
"github.com/libsv/dp3/log"
"github.com/libsv/dp3/transports/http/middleware"
"github.com/stretchr/testify/assert"
validator "github.com/theflyingcodr/govalidator"
"github.com/theflyingcodr/lathos/errs"
Expand Down

0 comments on commit 311d4ea

Please sign in to comment.