Skip to content

Commit

Permalink
refactor: move light client into dash folder
Browse files Browse the repository at this point in the history
  • Loading branch information
shotonoff committed Aug 9, 2023
1 parent fe76d28 commit 98e0889
Show file tree
Hide file tree
Showing 25 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions light/client.go → dash/light/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (

"github.com/tendermint/tendermint/crypto"
dashcore "github.com/tendermint/tendermint/dash/core"
"github.com/tendermint/tendermint/dash/light/provider"
"github.com/tendermint/tendermint/dash/light/store"
tmstrings "github.com/tendermint/tendermint/internal/libs/strings"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/light/provider"
"github.com/tendermint/tendermint/light/store"
"github.com/tendermint/tendermint/types"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
dbm "github.com/tendermint/tm-db"

dashcore "github.com/tendermint/tendermint/dash/core"
"github.com/tendermint/tendermint/dash/light"
"github.com/tendermint/tendermint/dash/light/provider"
dbs "github.com/tendermint/tendermint/dash/light/store/db"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/light"
"github.com/tendermint/tendermint/light/provider"
dbs "github.com/tendermint/tendermint/light/store/db"
"github.com/tendermint/tendermint/types"
)

Expand Down
8 changes: 4 additions & 4 deletions light/client_test.go → dash/light/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ import (
dbm "github.com/tendermint/tm-db"

dashcore "github.com/tendermint/tendermint/dash/core"
"github.com/tendermint/tendermint/dash/light"
"github.com/tendermint/tendermint/dash/light/provider"
provider_mocks "github.com/tendermint/tendermint/dash/light/provider/mocks"
dbs "github.com/tendermint/tendermint/dash/light/store/db"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/light"
"github.com/tendermint/tendermint/light/provider"
provider_mocks "github.com/tendermint/tendermint/light/provider/mocks"
dbs "github.com/tendermint/tendermint/light/store/db"
"github.com/tendermint/tendermint/types"
)

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion light/detector.go → dash/light/detector.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"errors"
"time"

"github.com/tendermint/tendermint/light/provider"
"github.com/tendermint/tendermint/dash/light/provider"
"github.com/tendermint/tendermint/types"
)

Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions light/example_test.go → dash/light/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (

"github.com/tendermint/tendermint/abci/example/kvstore"
dashcore "github.com/tendermint/tendermint/dash/core"
"github.com/tendermint/tendermint/dash/light"
httpp "github.com/tendermint/tendermint/dash/light/provider/http"
dbs "github.com/tendermint/tendermint/dash/light/store/db"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/light"
httpp "github.com/tendermint/tendermint/light/provider/http"
dbs "github.com/tendermint/tendermint/light/store/db"
rpctest "github.com/tendermint/tendermint/rpc/test"
)

Expand Down
2 changes: 1 addition & 1 deletion light/helpers_test.go → dash/light/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/require"

"github.com/tendermint/tendermint/crypto"
provider_mocks "github.com/tendermint/tendermint/light/provider/mocks"
provider_mocks "github.com/tendermint/tendermint/dash/light/provider/mocks"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
"github.com/tendermint/tendermint/types"
"github.com/tendermint/tendermint/version"
Expand Down
8 changes: 4 additions & 4 deletions light/light_test.go → dash/light/light_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import (

"github.com/tendermint/tendermint/abci/example/kvstore"
dashcore "github.com/tendermint/tendermint/dash/core"
"github.com/tendermint/tendermint/dash/light"
"github.com/tendermint/tendermint/dash/light/provider"
httpp "github.com/tendermint/tendermint/dash/light/provider/http"
dbs "github.com/tendermint/tendermint/dash/light/store/db"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/light"
"github.com/tendermint/tendermint/light/provider"
httpp "github.com/tendermint/tendermint/light/provider/http"
dbs "github.com/tendermint/tendermint/light/store/db"
"github.com/tendermint/tendermint/privval"
rpctest "github.com/tendermint/tendermint/rpc/test"
"github.com/tendermint/tendermint/types"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

"github.com/tendermint/tendermint/crypto"

"github.com/tendermint/tendermint/light/provider"
"github.com/tendermint/tendermint/dash/light/provider"
rpcclient "github.com/tendermint/tendermint/rpc/client"
rpchttp "github.com/tendermint/tendermint/rpc/client/http"
"github.com/tendermint/tendermint/rpc/coretypes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"github.com/stretchr/testify/require"

"github.com/tendermint/tendermint/abci/example/kvstore"
"github.com/tendermint/tendermint/light/provider"
lighthttp "github.com/tendermint/tendermint/light/provider/http"
"github.com/tendermint/tendermint/dash/light/provider"
lighthttp "github.com/tendermint/tendermint/dash/light/provider/http"
rpcclient "github.com/tendermint/tendermint/rpc/client"
rpchttp "github.com/tendermint/tendermint/rpc/client/http"
rpcmock "github.com/tendermint/tendermint/rpc/client/mocks"
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions light/proxy/proxy.go → dash/light/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"net"
"net/http"

"github.com/tendermint/tendermint/dash/light"
lrpc "github.com/tendermint/tendermint/dash/light/rpc"
tmpubsub "github.com/tendermint/tendermint/internal/pubsub"
rpccore "github.com/tendermint/tendermint/internal/rpc/core"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/light"
lrpc "github.com/tendermint/tendermint/light/rpc"
rpchttp "github.com/tendermint/tendermint/rpc/client/http"
rpcserver "github.com/tendermint/tendermint/rpc/jsonrpc/server"
)
Expand Down
2 changes: 1 addition & 1 deletion light/proxy/routes.go → dash/light/proxy/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package proxy
import (
"context"

lrpc "github.com/tendermint/tendermint/light/rpc"
lrpc "github.com/tendermint/tendermint/dash/light/rpc"
rpcclient "github.com/tendermint/tendermint/rpc/client"
"github.com/tendermint/tendermint/rpc/coretypes"
)
Expand Down
2 changes: 1 addition & 1 deletion light/rpc/client.go → dash/light/rpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
tmbytes "github.com/tendermint/tendermint/libs/bytes"
"github.com/tendermint/tendermint/libs/log"
tmmath "github.com/tendermint/tendermint/libs/math"
service "github.com/tendermint/tendermint/libs/service"
"github.com/tendermint/tendermint/libs/service"
rpcclient "github.com/tendermint/tendermint/rpc/client"
"github.com/tendermint/tendermint/rpc/coretypes"
rpctypes "github.com/tendermint/tendermint/rpc/jsonrpc/types"
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions light/setup.go → dash/light/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"

dashcore "github.com/tendermint/tendermint/dash/core"
"github.com/tendermint/tendermint/light/provider"
"github.com/tendermint/tendermint/light/provider/http"
"github.com/tendermint/tendermint/light/store"
"github.com/tendermint/tendermint/dash/light/provider"
"github.com/tendermint/tendermint/dash/light/provider/http"
"github.com/tendermint/tendermint/dash/light/store"
)

// NewHTTPClient initiates an instance of a light client using HTTP addresses
Expand Down
2 changes: 1 addition & 1 deletion light/store/db/db.go → dash/light/store/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/google/orderedcode"
dbm "github.com/tendermint/tm-db"

"github.com/tendermint/tendermint/light/store"
"github.com/tendermint/tendermint/dash/light/store"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
"github.com/tendermint/tendermint/types"
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 98e0889

Please sign in to comment.