|
|
@ -16,9 +16,11 @@ type ABCIApp struct { |
|
|
|
App abci.Application |
|
|
|
} |
|
|
|
|
|
|
|
func (a ABCIApp) _assertABCIClient() client.ABCIClient { |
|
|
|
return a |
|
|
|
} |
|
|
|
var ( |
|
|
|
_ client.ABCIClient = ABCIApp{} |
|
|
|
_ client.ABCIClient = ABCIMock{} |
|
|
|
_ client.ABCIClient = (*ABCIRecorder)(nil) |
|
|
|
) |
|
|
|
|
|
|
|
func (a ABCIApp) ABCIInfo() (*ctypes.ResultABCIInfo, error) { |
|
|
|
return &ctypes.ResultABCIInfo{a.App.Info(abci.RequestInfo{version.Version})}, nil |
|
|
@ -67,10 +69,6 @@ type ABCIMock struct { |
|
|
|
Broadcast Call |
|
|
|
} |
|
|
|
|
|
|
|
func (m ABCIMock) _assertABCIClient() client.ABCIClient { |
|
|
|
return m |
|
|
|
} |
|
|
|
|
|
|
|
func (m ABCIMock) ABCIInfo() (*ctypes.ResultABCIInfo, error) { |
|
|
|
res, err := m.Info.GetResponse(nil) |
|
|
|
if err != nil { |
|
|
@ -126,10 +124,6 @@ func NewABCIRecorder(client client.ABCIClient) *ABCIRecorder { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
func (r *ABCIRecorder) _assertABCIClient() client.ABCIClient { |
|
|
|
return r |
|
|
|
} |
|
|
|
|
|
|
|
type QueryArgs struct { |
|
|
|
Path string |
|
|
|
Data data.Bytes |
|
|
|