Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockDataStore
- func (m *MockDataStore) EXPECT() *MockDataStoreMockRecorder
- func (m *MockDataStore) GetAccounts(arg0 context.Context, arg1 structs.AccountParams) ([]structs.Account, error)
- func (m *MockDataStore) GetContractEvents(arg0 context.Context, arg1 structs.EventParams) ([]structs.ContractEvent, error)
- func (m *MockDataStore) GetDelegationTimeline(arg0 context.Context, arg1 structs.DelegationParams) ([]structs.Delegation, error)
- func (m *MockDataStore) GetDelegations(arg0 context.Context, arg1 structs.DelegationParams) ([]structs.Delegation, error)
- func (m *MockDataStore) GetNodes(arg0 context.Context, arg1 structs.NodeParams) ([]structs.Node, error)
- func (m *MockDataStore) GetSystemEvents(arg0 context.Context, arg1 structs.SystemEventParams) ([]structs.SystemEvent, error)
- func (m *MockDataStore) GetTypesSummaryDelegations(arg0 context.Context, arg1 structs.DelegationParams) ([]structs.DelegationSummary, error)
- func (m *MockDataStore) GetValidatorStatistics(arg0 context.Context, arg1 structs.ValidatorStatisticsParams) ([]structs.ValidatorStatistics, error)
- func (m *MockDataStore) GetValidatorStatisticsTimeline(arg0 context.Context, arg1 structs.ValidatorStatisticsParams) ([]structs.ValidatorStatistics, error)
- func (m *MockDataStore) GetValidators(arg0 context.Context, arg1 structs.ValidatorParams) ([]structs.Validator, error)
- func (m *MockDataStore) SaveAccount(arg0 context.Context, arg1 structs.Account) error
- func (m *MockDataStore) SaveContractEvent(arg0 context.Context, arg1 structs.ContractEvent) error
- func (m *MockDataStore) SaveDelegation(arg0 context.Context, arg1 structs.Delegation) error
- func (m *MockDataStore) SaveNodes(arg0 context.Context, arg1 []structs.Node, arg2 common.Address) error
- func (m *MockDataStore) SaveSystemEvent(arg0 context.Context, arg1 structs.SystemEvent) error
- func (m *MockDataStore) SaveValidator(arg0 context.Context, arg1 structs.Validator) error
- func (m *MockDataStore) SaveValidatorStatistic(arg0 context.Context, arg1 *big.Int, arg2 uint64, arg3 time.Time, ...) error
- func (m *MockDataStore) UpdateCountsOfValidator(arg0 context.Context, arg1 *big.Int) error
- type MockDataStoreMockRecorder
- func (mr *MockDataStoreMockRecorder) GetAccounts(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) GetContractEvents(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) GetDelegationTimeline(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) GetDelegations(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) GetNodes(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) GetSystemEvents(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) GetTypesSummaryDelegations(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) GetValidatorStatistics(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) GetValidatorStatisticsTimeline(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) GetValidators(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) SaveAccount(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) SaveContractEvent(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) SaveDelegation(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) SaveNodes(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) SaveSystemEvent(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) SaveValidator(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) SaveValidatorStatistic(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) UpdateCountsOfValidator(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDataStore ¶
type MockDataStore struct {
// contains filtered or unexported fields
}
MockDataStore is a mock of DataStore interface
func NewMockDataStore ¶
func NewMockDataStore(ctrl *gomock.Controller) *MockDataStore
NewMockDataStore creates a new mock instance
func (*MockDataStore) EXPECT ¶
func (m *MockDataStore) EXPECT() *MockDataStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDataStore) GetAccounts ¶
func (m *MockDataStore) GetAccounts(arg0 context.Context, arg1 structs.AccountParams) ([]structs.Account, error)
GetAccounts mocks base method
func (*MockDataStore) GetContractEvents ¶
func (m *MockDataStore) GetContractEvents(arg0 context.Context, arg1 structs.EventParams) ([]structs.ContractEvent, error)
GetContractEvents mocks base method
func (*MockDataStore) GetDelegationTimeline ¶
func (m *MockDataStore) GetDelegationTimeline(arg0 context.Context, arg1 structs.DelegationParams) ([]structs.Delegation, error)
GetDelegationTimeline mocks base method
func (*MockDataStore) GetDelegations ¶
func (m *MockDataStore) GetDelegations(arg0 context.Context, arg1 structs.DelegationParams) ([]structs.Delegation, error)
GetDelegations mocks base method
func (*MockDataStore) GetNodes ¶
func (m *MockDataStore) GetNodes(arg0 context.Context, arg1 structs.NodeParams) ([]structs.Node, error)
GetNodes mocks base method
func (*MockDataStore) GetSystemEvents ¶
func (m *MockDataStore) GetSystemEvents(arg0 context.Context, arg1 structs.SystemEventParams) ([]structs.SystemEvent, error)
GetSystemEvents mocks base method
func (*MockDataStore) GetTypesSummaryDelegations ¶ added in v0.0.4
func (m *MockDataStore) GetTypesSummaryDelegations(arg0 context.Context, arg1 structs.DelegationParams) ([]structs.DelegationSummary, error)
GetTypesSummaryDelegations mocks base method
func (*MockDataStore) GetValidatorStatistics ¶
func (m *MockDataStore) GetValidatorStatistics(arg0 context.Context, arg1 structs.ValidatorStatisticsParams) ([]structs.ValidatorStatistics, error)
GetValidatorStatistics mocks base method
func (*MockDataStore) GetValidatorStatisticsTimeline ¶
func (m *MockDataStore) GetValidatorStatisticsTimeline(arg0 context.Context, arg1 structs.ValidatorStatisticsParams) ([]structs.ValidatorStatistics, error)
GetValidatorStatisticsTimeline mocks base method
func (*MockDataStore) GetValidators ¶
func (m *MockDataStore) GetValidators(arg0 context.Context, arg1 structs.ValidatorParams) ([]structs.Validator, error)
GetValidators mocks base method
func (*MockDataStore) SaveAccount ¶
SaveAccount mocks base method
func (*MockDataStore) SaveContractEvent ¶
func (m *MockDataStore) SaveContractEvent(arg0 context.Context, arg1 structs.ContractEvent) error
SaveContractEvent mocks base method
func (*MockDataStore) SaveDelegation ¶
func (m *MockDataStore) SaveDelegation(arg0 context.Context, arg1 structs.Delegation) error
SaveDelegation mocks base method
func (*MockDataStore) SaveNodes ¶
func (m *MockDataStore) SaveNodes(arg0 context.Context, arg1 []structs.Node, arg2 common.Address) error
SaveNodes mocks base method
func (*MockDataStore) SaveSystemEvent ¶
func (m *MockDataStore) SaveSystemEvent(arg0 context.Context, arg1 structs.SystemEvent) error
SaveSystemEvent mocks base method
func (*MockDataStore) SaveValidator ¶
SaveValidator mocks base method
func (*MockDataStore) SaveValidatorStatistic ¶
func (m *MockDataStore) SaveValidatorStatistic(arg0 context.Context, arg1 *big.Int, arg2 uint64, arg3 time.Time, arg4 structs.StatisticTypeVS, arg5 *big.Int) error
SaveValidatorStatistic mocks base method
func (*MockDataStore) UpdateCountsOfValidator ¶
UpdateCountsOfValidator mocks base method
type MockDataStoreMockRecorder ¶
type MockDataStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockDataStoreMockRecorder is the mock recorder for MockDataStore
func (*MockDataStoreMockRecorder) GetAccounts ¶
func (mr *MockDataStoreMockRecorder) GetAccounts(arg0, arg1 interface{}) *gomock.Call
GetAccounts indicates an expected call of GetAccounts
func (*MockDataStoreMockRecorder) GetContractEvents ¶
func (mr *MockDataStoreMockRecorder) GetContractEvents(arg0, arg1 interface{}) *gomock.Call
GetContractEvents indicates an expected call of GetContractEvents
func (*MockDataStoreMockRecorder) GetDelegationTimeline ¶
func (mr *MockDataStoreMockRecorder) GetDelegationTimeline(arg0, arg1 interface{}) *gomock.Call
GetDelegationTimeline indicates an expected call of GetDelegationTimeline
func (*MockDataStoreMockRecorder) GetDelegations ¶
func (mr *MockDataStoreMockRecorder) GetDelegations(arg0, arg1 interface{}) *gomock.Call
GetDelegations indicates an expected call of GetDelegations
func (*MockDataStoreMockRecorder) GetNodes ¶
func (mr *MockDataStoreMockRecorder) GetNodes(arg0, arg1 interface{}) *gomock.Call
GetNodes indicates an expected call of GetNodes
func (*MockDataStoreMockRecorder) GetSystemEvents ¶
func (mr *MockDataStoreMockRecorder) GetSystemEvents(arg0, arg1 interface{}) *gomock.Call
GetSystemEvents indicates an expected call of GetSystemEvents
func (*MockDataStoreMockRecorder) GetTypesSummaryDelegations ¶ added in v0.0.4
func (mr *MockDataStoreMockRecorder) GetTypesSummaryDelegations(arg0, arg1 interface{}) *gomock.Call
GetTypesSummaryDelegations indicates an expected call of GetTypesSummaryDelegations
func (*MockDataStoreMockRecorder) GetValidatorStatistics ¶
func (mr *MockDataStoreMockRecorder) GetValidatorStatistics(arg0, arg1 interface{}) *gomock.Call
GetValidatorStatistics indicates an expected call of GetValidatorStatistics
func (*MockDataStoreMockRecorder) GetValidatorStatisticsTimeline ¶
func (mr *MockDataStoreMockRecorder) GetValidatorStatisticsTimeline(arg0, arg1 interface{}) *gomock.Call
GetValidatorStatisticsTimeline indicates an expected call of GetValidatorStatisticsTimeline
func (*MockDataStoreMockRecorder) GetValidators ¶
func (mr *MockDataStoreMockRecorder) GetValidators(arg0, arg1 interface{}) *gomock.Call
GetValidators indicates an expected call of GetValidators
func (*MockDataStoreMockRecorder) SaveAccount ¶
func (mr *MockDataStoreMockRecorder) SaveAccount(arg0, arg1 interface{}) *gomock.Call
SaveAccount indicates an expected call of SaveAccount
func (*MockDataStoreMockRecorder) SaveContractEvent ¶
func (mr *MockDataStoreMockRecorder) SaveContractEvent(arg0, arg1 interface{}) *gomock.Call
SaveContractEvent indicates an expected call of SaveContractEvent
func (*MockDataStoreMockRecorder) SaveDelegation ¶
func (mr *MockDataStoreMockRecorder) SaveDelegation(arg0, arg1 interface{}) *gomock.Call
SaveDelegation indicates an expected call of SaveDelegation
func (*MockDataStoreMockRecorder) SaveNodes ¶
func (mr *MockDataStoreMockRecorder) SaveNodes(arg0, arg1, arg2 interface{}) *gomock.Call
SaveNodes indicates an expected call of SaveNodes
func (*MockDataStoreMockRecorder) SaveSystemEvent ¶
func (mr *MockDataStoreMockRecorder) SaveSystemEvent(arg0, arg1 interface{}) *gomock.Call
SaveSystemEvent indicates an expected call of SaveSystemEvent
func (*MockDataStoreMockRecorder) SaveValidator ¶
func (mr *MockDataStoreMockRecorder) SaveValidator(arg0, arg1 interface{}) *gomock.Call
SaveValidator indicates an expected call of SaveValidator
func (*MockDataStoreMockRecorder) SaveValidatorStatistic ¶
func (mr *MockDataStoreMockRecorder) SaveValidatorStatistic(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
SaveValidatorStatistic indicates an expected call of SaveValidatorStatistic
func (*MockDataStoreMockRecorder) UpdateCountsOfValidator ¶
func (mr *MockDataStoreMockRecorder) UpdateCountsOfValidator(arg0, arg1 interface{}) *gomock.Call
UpdateCountsOfValidator indicates an expected call of UpdateCountsOfValidator