Browse Source

tendermint/rpc -> tendermint/rpc/tendermint

pull/456/head
Ethan Buchman 8 years ago
parent
commit
fa451fc55c
30 changed files with 43 additions and 43 deletions
  1. +1
    -1
      benchmarks/codec_test.go
  2. +1
    -1
      benchmarks/simu/counter.go
  3. +2
    -2
      node/node.go
  4. +1
    -1
      rpc/tendermint/client/event_test.go
  5. +3
    -3
      rpc/tendermint/client/helpers_test.go
  6. +1
    -1
      rpc/tendermint/client/httpclient.go
  7. +1
    -1
      rpc/tendermint/client/interface.go
  8. +2
    -2
      rpc/tendermint/client/localclient.go
  9. +1
    -1
      rpc/tendermint/client/main_test.go
  10. +2
    -2
      rpc/tendermint/client/mock/abci.go
  11. +2
    -2
      rpc/tendermint/client/mock/abci_test.go
  12. +3
    -3
      rpc/tendermint/client/mock/client.go
  13. +2
    -2
      rpc/tendermint/client/mock/status.go
  14. +2
    -2
      rpc/tendermint/client/mock/status_test.go
  15. +2
    -2
      rpc/tendermint/client/rpc_test.go
  16. +1
    -1
      rpc/tendermint/core/abci.go
  17. +1
    -1
      rpc/tendermint/core/blocks.go
  18. +1
    -1
      rpc/tendermint/core/consensus.go
  19. +1
    -1
      rpc/tendermint/core/dev.go
  20. +1
    -1
      rpc/tendermint/core/events.go
  21. +1
    -1
      rpc/tendermint/core/mempool.go
  22. +1
    -1
      rpc/tendermint/core/net.go
  23. +1
    -1
      rpc/tendermint/core/routes.go
  24. +1
    -1
      rpc/tendermint/core/status.go
  25. +1
    -1
      rpc/tendermint/core/tx.go
  26. +1
    -1
      rpc/tendermint/grpc/api.go
  27. +2
    -2
      rpc/tendermint/test/client_test.go
  28. +1
    -1
      rpc/tendermint/test/grpc_test.go
  29. +2
    -2
      rpc/tendermint/test/helpers.go
  30. +1
    -1
      test/app/grpc_client.go

+ 1
- 1
benchmarks/codec_test.go View File

@ -7,7 +7,7 @@ import (
"github.com/tendermint/go-p2p" "github.com/tendermint/go-p2p"
"github.com/tendermint/go-wire" "github.com/tendermint/go-wire"
proto "github.com/tendermint/tendermint/benchmarks/proto" proto "github.com/tendermint/tendermint/benchmarks/proto"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
) )
func BenchmarkEncodeStatusWire(b *testing.B) { func BenchmarkEncodeStatusWire(b *testing.B) {


+ 1
- 1
benchmarks/simu/counter.go View File

@ -11,7 +11,7 @@ import (
"github.com/tendermint/go-rpc/client" "github.com/tendermint/go-rpc/client"
"github.com/tendermint/go-rpc/types" "github.com/tendermint/go-rpc/types"
"github.com/tendermint/go-wire" "github.com/tendermint/go-wire"
_ "github.com/tendermint/tendermint/rpc/core/types" // Register RPCResponse > Result types
_ "github.com/tendermint/tendermint/rpc/tendermint/core/types" // Register RPCResponse > Result types
) )
func main() { func main() {


+ 2
- 2
node/node.go View File

@ -20,8 +20,8 @@ import (
"github.com/tendermint/tendermint/consensus" "github.com/tendermint/tendermint/consensus"
mempl "github.com/tendermint/tendermint/mempool" mempl "github.com/tendermint/tendermint/mempool"
"github.com/tendermint/tendermint/proxy" "github.com/tendermint/tendermint/proxy"
rpccore "github.com/tendermint/tendermint/rpc/core"
grpccore "github.com/tendermint/tendermint/rpc/grpc"
rpccore "github.com/tendermint/tendermint/rpc/tendermint/core"
grpccore "github.com/tendermint/tendermint/rpc/tendermint/grpc"
sm "github.com/tendermint/tendermint/state" sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/state/txindex" "github.com/tendermint/tendermint/state/txindex"
"github.com/tendermint/tendermint/state/txindex/kv" "github.com/tendermint/tendermint/state/txindex/kv"


+ 1
- 1
rpc/tendermint/client/event_test.go View File

@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
merktest "github.com/tendermint/merkleeyes/testutil" merktest "github.com/tendermint/merkleeyes/testutil"
"github.com/tendermint/tendermint/rpc/client"
"github.com/tendermint/tendermint/rpc/tendermint/client"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 3
- 3
rpc/tendermint/client/helpers_test.go View File

@ -7,9 +7,9 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/rpc/client"
"github.com/tendermint/tendermint/rpc/client/mock"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
"github.com/tendermint/tendermint/rpc/tendermint/client"
"github.com/tendermint/tendermint/rpc/tendermint/client/mock"
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
) )
func TestWaitForHeight(t *testing.T) { func TestWaitForHeight(t *testing.T) {


+ 1
- 1
rpc/tendermint/client/httpclient.go View File

@ -8,7 +8,7 @@ import (
events "github.com/tendermint/go-events" events "github.com/tendermint/go-events"
"github.com/tendermint/go-rpc/client" "github.com/tendermint/go-rpc/client"
wire "github.com/tendermint/go-wire" wire "github.com/tendermint/go-wire"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 1
- 1
rpc/tendermint/client/interface.go View File

@ -21,7 +21,7 @@ package client
import ( import (
data "github.com/tendermint/go-data" data "github.com/tendermint/go-data"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 2
- 2
rpc/tendermint/client/localclient.go View File

@ -3,8 +3,8 @@ package client
import ( import (
data "github.com/tendermint/go-data" data "github.com/tendermint/go-data"
nm "github.com/tendermint/tendermint/node" nm "github.com/tendermint/tendermint/node"
"github.com/tendermint/tendermint/rpc/core"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
"github.com/tendermint/tendermint/rpc/tendermint/core"
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 1
- 1
rpc/tendermint/client/main_test.go View File

@ -6,7 +6,7 @@ import (
meapp "github.com/tendermint/merkleeyes/app" meapp "github.com/tendermint/merkleeyes/app"
nm "github.com/tendermint/tendermint/node" nm "github.com/tendermint/tendermint/node"
rpctest "github.com/tendermint/tendermint/rpc/test"
rpctest "github.com/tendermint/tendermint/rpc/tendermint/test"
) )
var node *nm.Node var node *nm.Node


+ 2
- 2
rpc/tendermint/client/mock/abci.go View File

@ -3,8 +3,8 @@ package mock
import ( import (
abci "github.com/tendermint/abci/types" abci "github.com/tendermint/abci/types"
data "github.com/tendermint/go-data" data "github.com/tendermint/go-data"
"github.com/tendermint/tendermint/rpc/client"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
"github.com/tendermint/tendermint/rpc/tendermint/client"
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 2
- 2
rpc/tendermint/client/mock/abci_test.go View File

@ -11,10 +11,10 @@ import (
"github.com/tendermint/abci/example/dummy" "github.com/tendermint/abci/example/dummy"
abci "github.com/tendermint/abci/types" abci "github.com/tendermint/abci/types"
data "github.com/tendermint/go-data" data "github.com/tendermint/go-data"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
"github.com/tendermint/tendermint/rpc/client/mock"
"github.com/tendermint/tendermint/rpc/tendermint/client/mock"
) )
func TestABCIMock(t *testing.T) { func TestABCIMock(t *testing.T) {


+ 3
- 3
rpc/tendermint/client/mock/client.go View File

@ -17,9 +17,9 @@ import (
"reflect" "reflect"
data "github.com/tendermint/go-data" data "github.com/tendermint/go-data"
"github.com/tendermint/tendermint/rpc/client"
"github.com/tendermint/tendermint/rpc/core"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
"github.com/tendermint/tendermint/rpc/tendermint/client"
"github.com/tendermint/tendermint/rpc/tendermint/core"
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 2
- 2
rpc/tendermint/client/mock/status.go View File

@ -1,8 +1,8 @@
package mock package mock
import ( import (
"github.com/tendermint/tendermint/rpc/client"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
"github.com/tendermint/tendermint/rpc/tendermint/client"
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
) )
// StatusMock returns the result specified by the Call // StatusMock returns the result specified by the Call


+ 2
- 2
rpc/tendermint/client/mock/status_test.go View File

@ -6,9 +6,9 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
data "github.com/tendermint/go-data" data "github.com/tendermint/go-data"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
"github.com/tendermint/tendermint/rpc/client/mock"
"github.com/tendermint/tendermint/rpc/tendermint/client/mock"
) )
func TestStatus(t *testing.T) { func TestStatus(t *testing.T) {


+ 2
- 2
rpc/tendermint/client/rpc_test.go View File

@ -8,8 +8,8 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
merkle "github.com/tendermint/go-merkle" merkle "github.com/tendermint/go-merkle"
merktest "github.com/tendermint/merkleeyes/testutil" merktest "github.com/tendermint/merkleeyes/testutil"
"github.com/tendermint/tendermint/rpc/client"
rpctest "github.com/tendermint/tendermint/rpc/test"
"github.com/tendermint/tendermint/rpc/tendermint/client"
rpctest "github.com/tendermint/tendermint/rpc/tendermint/test"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 1
- 1
rpc/tendermint/core/abci.go View File

@ -3,7 +3,7 @@ package core
import ( import (
abci "github.com/tendermint/abci/types" abci "github.com/tendermint/abci/types"
data "github.com/tendermint/go-data" data "github.com/tendermint/go-data"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
) )
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------


+ 1
- 1
rpc/tendermint/core/blocks.go View File

@ -3,7 +3,7 @@ package core
import ( import (
"fmt" "fmt"
. "github.com/tendermint/go-common" . "github.com/tendermint/go-common"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 1
- 1
rpc/tendermint/core/consensus.go View File

@ -3,7 +3,7 @@ package core
import ( import (
"github.com/tendermint/go-wire" "github.com/tendermint/go-wire"
cm "github.com/tendermint/tendermint/consensus" cm "github.com/tendermint/tendermint/consensus"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 1
- 1
rpc/tendermint/core/dev.go View File

@ -6,7 +6,7 @@ import (
"runtime/pprof" "runtime/pprof"
"strconv" "strconv"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
) )
func UnsafeFlushMempool() (*ctypes.ResultUnsafeFlushMempool, error) { func UnsafeFlushMempool() (*ctypes.ResultUnsafeFlushMempool, error) {


+ 1
- 1
rpc/tendermint/core/events.go View File

@ -2,7 +2,7 @@ package core
import ( import (
"github.com/tendermint/go-rpc/types" "github.com/tendermint/go-rpc/types"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 1
- 1
rpc/tendermint/core/mempool.go View File

@ -6,7 +6,7 @@ import (
abci "github.com/tendermint/abci/types" abci "github.com/tendermint/abci/types"
data "github.com/tendermint/go-data" data "github.com/tendermint/go-data"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 1
- 1
rpc/tendermint/core/net.go View File

@ -3,7 +3,7 @@ package core
import ( import (
"fmt" "fmt"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
) )
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------


+ 1
- 1
rpc/tendermint/core/routes.go View File

@ -4,7 +4,7 @@ import (
data "github.com/tendermint/go-data" data "github.com/tendermint/go-data"
rpc "github.com/tendermint/go-rpc/server" rpc "github.com/tendermint/go-rpc/server"
"github.com/tendermint/go-rpc/types" "github.com/tendermint/go-rpc/types"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 1
- 1
rpc/tendermint/core/status.go View File

@ -2,7 +2,7 @@ package core
import ( import (
data "github.com/tendermint/go-data" data "github.com/tendermint/go-data"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 1
- 1
rpc/tendermint/core/tx.go View File

@ -3,7 +3,7 @@ package core
import ( import (
"fmt" "fmt"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
"github.com/tendermint/tendermint/state/txindex/null" "github.com/tendermint/tendermint/state/txindex/null"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 1
- 1
rpc/tendermint/grpc/api.go View File

@ -1,7 +1,7 @@
package core_grpc package core_grpc
import ( import (
core "github.com/tendermint/tendermint/rpc/core"
core "github.com/tendermint/tendermint/rpc/tendermint/core"
context "golang.org/x/net/context" context "golang.org/x/net/context"
) )


+ 2
- 2
rpc/tendermint/test/client_test.go View File

@ -13,8 +13,8 @@ import (
abci "github.com/tendermint/abci/types" abci "github.com/tendermint/abci/types"
. "github.com/tendermint/go-common" . "github.com/tendermint/go-common"
rpc "github.com/tendermint/go-rpc/client" rpc "github.com/tendermint/go-rpc/client"
"github.com/tendermint/tendermint/rpc/core"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
"github.com/tendermint/tendermint/rpc/tendermint/core"
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
"github.com/tendermint/tendermint/state/txindex/null" "github.com/tendermint/tendermint/state/txindex/null"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 1
- 1
rpc/tendermint/test/grpc_test.go View File

@ -6,7 +6,7 @@ import (
"golang.org/x/net/context" "golang.org/x/net/context"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/rpc/grpc"
"github.com/tendermint/tendermint/rpc/tendermint/grpc"
) )
//------------------------------------------- //-------------------------------------------


+ 2
- 2
rpc/tendermint/test/helpers.go View File

@ -19,8 +19,8 @@ import (
"github.com/tendermint/tendermint/config/tendermint_test" "github.com/tendermint/tendermint/config/tendermint_test"
nm "github.com/tendermint/tendermint/node" nm "github.com/tendermint/tendermint/node"
"github.com/tendermint/tendermint/proxy" "github.com/tendermint/tendermint/proxy"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
core_grpc "github.com/tendermint/tendermint/rpc/grpc"
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
core_grpc "github.com/tendermint/tendermint/rpc/tendermint/grpc"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 1
- 1
test/app/grpc_client.go View File

@ -8,7 +8,7 @@ import (
"golang.org/x/net/context" "golang.org/x/net/context"
"github.com/tendermint/go-wire" "github.com/tendermint/go-wire"
"github.com/tendermint/tendermint/rpc/grpc"
"github.com/tendermint/tendermint/rpc/tendermint/grpc"
) )
var grpcAddr = "tcp://localhost:36656" var grpcAddr = "tcp://localhost:36656"


Loading…
Cancel
Save