-
Notifications
You must be signed in to change notification settings - Fork 87
/
verify.go
107 lines (89 loc) · 4.05 KB
/
verify.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
// Code generated by MockGen. DO NOT EDIT.
// Source: x/interchainqueries/types/verify.go
// Package mock_types is a generated GoMock package.
package mock_types
import (
reflect "reflect"
types "github.com/cosmos/cosmos-sdk/codec/types"
types0 "github.com/cosmos/cosmos-sdk/types"
keeper "github.com/cosmos/ibc-go/v8/modules/core/02-client/keeper"
exported "github.com/cosmos/ibc-go/v8/modules/core/exported"
types1 "github.com/cosmos/ibc-go/v8/modules/light-clients/07-tendermint"
gomock "github.com/golang/mock/gomock"
types2 "github.com/neutron-org/neutron/v4/x/interchainqueries/types"
)
// MockHeaderVerifier is a mock of HeaderVerifier interface.
type MockHeaderVerifier struct {
ctrl *gomock.Controller
recorder *MockHeaderVerifierMockRecorder
}
// MockHeaderVerifierMockRecorder is the mock recorder for MockHeaderVerifier.
type MockHeaderVerifierMockRecorder struct {
mock *MockHeaderVerifier
}
// NewMockHeaderVerifier creates a new mock instance.
func NewMockHeaderVerifier(ctrl *gomock.Controller) *MockHeaderVerifier {
mock := &MockHeaderVerifier{ctrl: ctrl}
mock.recorder = &MockHeaderVerifierMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockHeaderVerifier) EXPECT() *MockHeaderVerifierMockRecorder {
return m.recorder
}
// UnpackHeader mocks base method.
func (m *MockHeaderVerifier) UnpackHeader(any *types.Any) (exported.ClientMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UnpackHeader", any)
ret0, _ := ret[0].(exported.ClientMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// UnpackHeader indicates an expected call of UnpackHeader.
func (mr *MockHeaderVerifierMockRecorder) UnpackHeader(any interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnpackHeader", reflect.TypeOf((*MockHeaderVerifier)(nil).UnpackHeader), any)
}
// VerifyHeaders mocks base method.
func (m *MockHeaderVerifier) VerifyHeaders(ctx types0.Context, cleintkeeper keeper.Keeper, clientID string, header, nextHeader exported.ClientMessage) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "VerifyHeaders", ctx, cleintkeeper, clientID, header, nextHeader)
ret0, _ := ret[0].(error)
return ret0
}
// VerifyHeaders indicates an expected call of VerifyHeaders.
func (mr *MockHeaderVerifierMockRecorder) VerifyHeaders(ctx, cleintkeeper, clientID, header, nextHeader interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyHeaders", reflect.TypeOf((*MockHeaderVerifier)(nil).VerifyHeaders), ctx, cleintkeeper, clientID, header, nextHeader)
}
// MockTransactionVerifier is a mock of TransactionVerifier interface.
type MockTransactionVerifier struct {
ctrl *gomock.Controller
recorder *MockTransactionVerifierMockRecorder
}
// MockTransactionVerifierMockRecorder is the mock recorder for MockTransactionVerifier.
type MockTransactionVerifierMockRecorder struct {
mock *MockTransactionVerifier
}
// NewMockTransactionVerifier creates a new mock instance.
func NewMockTransactionVerifier(ctrl *gomock.Controller) *MockTransactionVerifier {
mock := &MockTransactionVerifier{ctrl: ctrl}
mock.recorder = &MockTransactionVerifierMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockTransactionVerifier) EXPECT() *MockTransactionVerifierMockRecorder {
return m.recorder
}
// VerifyTransaction mocks base method.
func (m *MockTransactionVerifier) VerifyTransaction(header, nextHeader *types1.Header, tx *types2.TxValue) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "VerifyTransaction", header, nextHeader, tx)
ret0, _ := ret[0].(error)
return ret0
}
// VerifyTransaction indicates an expected call of VerifyTransaction.
func (mr *MockTransactionVerifierMockRecorder) VerifyTransaction(header, nextHeader, tx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyTransaction", reflect.TypeOf((*MockTransactionVerifier)(nil).VerifyTransaction), header, nextHeader, tx)
}