Documentation
¶
Index ¶
- type MockChainClient
- func (_m *MockChainClient) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (_m *MockChainClient) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (_m *MockChainClient) BlockNumber(ctx context.Context) (uint64, error)
- func (_m *MockChainClient) ChainID(ctx context.Context) (*big.Int, error)
- func (_m *MockChainClient) EXPECT() *MockChainClient_Expecter
- func (_m *MockChainClient) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
- func (_m *MockChainClient) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
- func (_m *MockChainClient) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (_m *MockChainClient) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- func (_m *MockChainClient) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
- func (_m *MockChainClient) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)
- func (_m *MockChainClient) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
- type MockChainClient_BlockByHash_Call
- func (_c *MockChainClient_BlockByHash_Call) Return(_a0 *types.Block, _a1 error) *MockChainClient_BlockByHash_Call
- func (_c *MockChainClient_BlockByHash_Call) Run(run func(ctx context.Context, hash common.Hash)) *MockChainClient_BlockByHash_Call
- func (_c *MockChainClient_BlockByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Block, error)) *MockChainClient_BlockByHash_Call
- type MockChainClient_BlockByNumber_Call
- func (_c *MockChainClient_BlockByNumber_Call) Return(_a0 *types.Block, _a1 error) *MockChainClient_BlockByNumber_Call
- func (_c *MockChainClient_BlockByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *MockChainClient_BlockByNumber_Call
- func (_c *MockChainClient_BlockByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Block, error)) *MockChainClient_BlockByNumber_Call
- type MockChainClient_BlockNumber_Call
- func (_c *MockChainClient_BlockNumber_Call) Return(_a0 uint64, _a1 error) *MockChainClient_BlockNumber_Call
- func (_c *MockChainClient_BlockNumber_Call) Run(run func(ctx context.Context)) *MockChainClient_BlockNumber_Call
- func (_c *MockChainClient_BlockNumber_Call) RunAndReturn(run func(context.Context) (uint64, error)) *MockChainClient_BlockNumber_Call
- type MockChainClient_ChainID_Call
- func (_c *MockChainClient_ChainID_Call) Return(_a0 *big.Int, _a1 error) *MockChainClient_ChainID_Call
- func (_c *MockChainClient_ChainID_Call) Run(run func(ctx context.Context)) *MockChainClient_ChainID_Call
- func (_c *MockChainClient_ChainID_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *MockChainClient_ChainID_Call
- type MockChainClient_Expecter
- func (_e *MockChainClient_Expecter) BlockByHash(ctx interface{}, hash interface{}) *MockChainClient_BlockByHash_Call
- func (_e *MockChainClient_Expecter) BlockByNumber(ctx interface{}, number interface{}) *MockChainClient_BlockByNumber_Call
- func (_e *MockChainClient_Expecter) BlockNumber(ctx interface{}) *MockChainClient_BlockNumber_Call
- func (_e *MockChainClient_Expecter) ChainID(ctx interface{}) *MockChainClient_ChainID_Call
- func (_e *MockChainClient_Expecter) FilterLogs(ctx interface{}, q interface{}) *MockChainClient_FilterLogs_Call
- func (_e *MockChainClient_Expecter) HeaderByHash(ctx interface{}, hash interface{}) *MockChainClient_HeaderByHash_Call
- func (_e *MockChainClient_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *MockChainClient_HeaderByNumber_Call
- func (_e *MockChainClient_Expecter) SubscribeFilterLogs(ctx interface{}, q interface{}, ch interface{}) *MockChainClient_SubscribeFilterLogs_Call
- func (_e *MockChainClient_Expecter) SubscribeNewHead(ctx interface{}, ch interface{}) *MockChainClient_SubscribeNewHead_Call
- func (_e *MockChainClient_Expecter) TransactionCount(ctx interface{}, blockHash interface{}) *MockChainClient_TransactionCount_Call
- func (_e *MockChainClient_Expecter) TransactionInBlock(ctx interface{}, blockHash interface{}, index interface{}) *MockChainClient_TransactionInBlock_Call
- type MockChainClient_FilterLogs_Call
- func (_c *MockChainClient_FilterLogs_Call) Return(_a0 []types.Log, _a1 error) *MockChainClient_FilterLogs_Call
- func (_c *MockChainClient_FilterLogs_Call) Run(run func(ctx context.Context, q ethereum.FilterQuery)) *MockChainClient_FilterLogs_Call
- func (_c *MockChainClient_FilterLogs_Call) RunAndReturn(run func(context.Context, ethereum.FilterQuery) ([]types.Log, error)) *MockChainClient_FilterLogs_Call
- type MockChainClient_HeaderByHash_Call
- func (_c *MockChainClient_HeaderByHash_Call) Return(_a0 *types.Header, _a1 error) *MockChainClient_HeaderByHash_Call
- func (_c *MockChainClient_HeaderByHash_Call) Run(run func(ctx context.Context, hash common.Hash)) *MockChainClient_HeaderByHash_Call
- func (_c *MockChainClient_HeaderByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Header, error)) *MockChainClient_HeaderByHash_Call
- type MockChainClient_HeaderByNumber_Call
- func (_c *MockChainClient_HeaderByNumber_Call) Return(_a0 *types.Header, _a1 error) *MockChainClient_HeaderByNumber_Call
- func (_c *MockChainClient_HeaderByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *MockChainClient_HeaderByNumber_Call
- func (_c *MockChainClient_HeaderByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Header, error)) *MockChainClient_HeaderByNumber_Call
- type MockChainClient_SubscribeFilterLogs_Call
- func (_c *MockChainClient_SubscribeFilterLogs_Call) Return(_a0 ethereum.Subscription, _a1 error) *MockChainClient_SubscribeFilterLogs_Call
- func (_c *MockChainClient_SubscribeFilterLogs_Call) Run(run func(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log)) *MockChainClient_SubscribeFilterLogs_Call
- func (_c *MockChainClient_SubscribeFilterLogs_Call) RunAndReturn(...) *MockChainClient_SubscribeFilterLogs_Call
- type MockChainClient_SubscribeNewHead_Call
- func (_c *MockChainClient_SubscribeNewHead_Call) Return(_a0 ethereum.Subscription, _a1 error) *MockChainClient_SubscribeNewHead_Call
- func (_c *MockChainClient_SubscribeNewHead_Call) Run(run func(ctx context.Context, ch chan<- *types.Header)) *MockChainClient_SubscribeNewHead_Call
- func (_c *MockChainClient_SubscribeNewHead_Call) RunAndReturn(run func(context.Context, chan<- *types.Header) (ethereum.Subscription, error)) *MockChainClient_SubscribeNewHead_Call
- type MockChainClient_TransactionCount_Call
- func (_c *MockChainClient_TransactionCount_Call) Return(_a0 uint, _a1 error) *MockChainClient_TransactionCount_Call
- func (_c *MockChainClient_TransactionCount_Call) Run(run func(ctx context.Context, blockHash common.Hash)) *MockChainClient_TransactionCount_Call
- func (_c *MockChainClient_TransactionCount_Call) RunAndReturn(run func(context.Context, common.Hash) (uint, error)) *MockChainClient_TransactionCount_Call
- type MockChainClient_TransactionInBlock_Call
- func (_c *MockChainClient_TransactionInBlock_Call) Return(_a0 *types.Transaction, _a1 error) *MockChainClient_TransactionInBlock_Call
- func (_c *MockChainClient_TransactionInBlock_Call) Run(run func(ctx context.Context, blockHash common.Hash, index uint)) *MockChainClient_TransactionInBlock_Call
- func (_c *MockChainClient_TransactionInBlock_Call) RunAndReturn(run func(context.Context, common.Hash, uint) (*types.Transaction, error)) *MockChainClient_TransactionInBlock_Call
- type MockIBlockchainPublisher
- func (_m *MockIBlockchainPublisher) BootstrapGroupMessages(ctx context.Context, groupIDs [][16]byte, messages [][]byte, ...) ([]*groupmessagebroadcaster.GroupMessageBroadcasterMessageSent, error)
- func (_m *MockIBlockchainPublisher) BootstrapIdentityUpdates(ctx context.Context, inboxIDs [][32]byte, identityUpdates [][]byte, ...) ([]*identityupdatebroadcaster.IdentityUpdateBroadcasterIdentityUpdateCreated, ...)
- func (_m *MockIBlockchainPublisher) Close()
- func (_m *MockIBlockchainPublisher) EXPECT() *MockIBlockchainPublisher_Expecter
- func (_m *MockIBlockchainPublisher) PublishGroupMessage(ctx context.Context, groupID [16]byte, message []byte) (*groupmessagebroadcaster.GroupMessageBroadcasterMessageSent, error)
- func (_m *MockIBlockchainPublisher) PublishIdentityUpdate(ctx context.Context, inboxID [32]byte, identityUpdate []byte) (*identityupdatebroadcaster.IdentityUpdateBroadcasterIdentityUpdateCreated, ...)
- type MockIBlockchainPublisher_BootstrapGroupMessages_Call
- func (_c *MockIBlockchainPublisher_BootstrapGroupMessages_Call) Return(_a0 []*groupmessagebroadcaster.GroupMessageBroadcasterMessageSent, _a1 error) *MockIBlockchainPublisher_BootstrapGroupMessages_Call
- func (_c *MockIBlockchainPublisher_BootstrapGroupMessages_Call) Run(run func(ctx context.Context, groupIDs [][16]byte, messages [][]byte, ...)) *MockIBlockchainPublisher_BootstrapGroupMessages_Call
- func (_c *MockIBlockchainPublisher_BootstrapGroupMessages_Call) RunAndReturn(...) *MockIBlockchainPublisher_BootstrapGroupMessages_Call
- type MockIBlockchainPublisher_BootstrapIdentityUpdates_Call
- func (_c *MockIBlockchainPublisher_BootstrapIdentityUpdates_Call) Return(...) *MockIBlockchainPublisher_BootstrapIdentityUpdates_Call
- func (_c *MockIBlockchainPublisher_BootstrapIdentityUpdates_Call) Run(...) *MockIBlockchainPublisher_BootstrapIdentityUpdates_Call
- func (_c *MockIBlockchainPublisher_BootstrapIdentityUpdates_Call) RunAndReturn(...) *MockIBlockchainPublisher_BootstrapIdentityUpdates_Call
- type MockIBlockchainPublisher_Close_Call
- func (_c *MockIBlockchainPublisher_Close_Call) Return() *MockIBlockchainPublisher_Close_Call
- func (_c *MockIBlockchainPublisher_Close_Call) Run(run func()) *MockIBlockchainPublisher_Close_Call
- func (_c *MockIBlockchainPublisher_Close_Call) RunAndReturn(run func()) *MockIBlockchainPublisher_Close_Call
- type MockIBlockchainPublisher_Expecter
- func (_e *MockIBlockchainPublisher_Expecter) BootstrapGroupMessages(ctx interface{}, groupIDs interface{}, messages interface{}, ...) *MockIBlockchainPublisher_BootstrapGroupMessages_Call
- func (_e *MockIBlockchainPublisher_Expecter) BootstrapIdentityUpdates(ctx interface{}, inboxIDs interface{}, identityUpdates interface{}, ...) *MockIBlockchainPublisher_BootstrapIdentityUpdates_Call
- func (_e *MockIBlockchainPublisher_Expecter) Close() *MockIBlockchainPublisher_Close_Call
- func (_e *MockIBlockchainPublisher_Expecter) PublishGroupMessage(ctx interface{}, groupID interface{}, message interface{}) *MockIBlockchainPublisher_PublishGroupMessage_Call
- func (_e *MockIBlockchainPublisher_Expecter) PublishIdentityUpdate(ctx interface{}, inboxID interface{}, identityUpdate interface{}) *MockIBlockchainPublisher_PublishIdentityUpdate_Call
- type MockIBlockchainPublisher_PublishGroupMessage_Call
- func (_c *MockIBlockchainPublisher_PublishGroupMessage_Call) Return(_a0 *groupmessagebroadcaster.GroupMessageBroadcasterMessageSent, _a1 error) *MockIBlockchainPublisher_PublishGroupMessage_Call
- func (_c *MockIBlockchainPublisher_PublishGroupMessage_Call) Run(run func(ctx context.Context, groupID [16]byte, message []byte)) *MockIBlockchainPublisher_PublishGroupMessage_Call
- func (_c *MockIBlockchainPublisher_PublishGroupMessage_Call) RunAndReturn(...) *MockIBlockchainPublisher_PublishGroupMessage_Call
- type MockIBlockchainPublisher_PublishIdentityUpdate_Call
- func (_c *MockIBlockchainPublisher_PublishIdentityUpdate_Call) Return(_a0 *identityupdatebroadcaster.IdentityUpdateBroadcasterIdentityUpdateCreated, ...) *MockIBlockchainPublisher_PublishIdentityUpdate_Call
- func (_c *MockIBlockchainPublisher_PublishIdentityUpdate_Call) Run(run func(ctx context.Context, inboxID [32]byte, identityUpdate []byte)) *MockIBlockchainPublisher_PublishIdentityUpdate_Call
- func (_c *MockIBlockchainPublisher_PublishIdentityUpdate_Call) RunAndReturn(...) *MockIBlockchainPublisher_PublishIdentityUpdate_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockChainClient ¶
MockChainClient is an autogenerated mock type for the ChainClient type
func NewMockChainClient ¶
func NewMockChainClient(t interface {
mock.TestingT
Cleanup(func())
}) *MockChainClient
NewMockChainClient creates a new instance of MockChainClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockChainClient) BlockByHash ¶ added in v0.2.0
BlockByHash provides a mock function with given fields: ctx, hash
func (*MockChainClient) BlockByNumber ¶ added in v0.2.0
func (_m *MockChainClient) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
BlockByNumber provides a mock function with given fields: ctx, number
func (*MockChainClient) BlockNumber ¶
func (_m *MockChainClient) BlockNumber(ctx context.Context) (uint64, error)
BlockNumber provides a mock function with given fields: ctx
func (*MockChainClient) EXPECT ¶
func (_m *MockChainClient) EXPECT() *MockChainClient_Expecter
func (*MockChainClient) FilterLogs ¶
func (_m *MockChainClient) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
FilterLogs provides a mock function with given fields: ctx, q
func (*MockChainClient) HeaderByHash ¶ added in v0.2.0
func (_m *MockChainClient) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
HeaderByHash provides a mock function with given fields: ctx, hash
func (*MockChainClient) HeaderByNumber ¶ added in v0.2.0
func (_m *MockChainClient) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
HeaderByNumber provides a mock function with given fields: ctx, number
func (*MockChainClient) SubscribeFilterLogs ¶
func (_m *MockChainClient) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
SubscribeFilterLogs provides a mock function with given fields: ctx, q, ch
func (*MockChainClient) SubscribeNewHead ¶ added in v0.2.0
func (_m *MockChainClient) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
SubscribeNewHead provides a mock function with given fields: ctx, ch
func (*MockChainClient) TransactionCount ¶ added in v0.2.0
func (_m *MockChainClient) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)
TransactionCount provides a mock function with given fields: ctx, blockHash
func (*MockChainClient) TransactionInBlock ¶ added in v0.2.0
func (_m *MockChainClient) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
TransactionInBlock provides a mock function with given fields: ctx, blockHash, index
type MockChainClient_BlockByHash_Call ¶ added in v0.2.0
MockChainClient_BlockByHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockByHash'
func (*MockChainClient_BlockByHash_Call) Return ¶ added in v0.2.0
func (_c *MockChainClient_BlockByHash_Call) Return(_a0 *types.Block, _a1 error) *MockChainClient_BlockByHash_Call
func (*MockChainClient_BlockByHash_Call) Run ¶ added in v0.2.0
func (_c *MockChainClient_BlockByHash_Call) Run(run func(ctx context.Context, hash common.Hash)) *MockChainClient_BlockByHash_Call
func (*MockChainClient_BlockByHash_Call) RunAndReturn ¶ added in v0.2.0
func (_c *MockChainClient_BlockByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Block, error)) *MockChainClient_BlockByHash_Call
type MockChainClient_BlockByNumber_Call ¶ added in v0.2.0
MockChainClient_BlockByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockByNumber'
func (*MockChainClient_BlockByNumber_Call) Return ¶ added in v0.2.0
func (_c *MockChainClient_BlockByNumber_Call) Return(_a0 *types.Block, _a1 error) *MockChainClient_BlockByNumber_Call
func (*MockChainClient_BlockByNumber_Call) Run ¶ added in v0.2.0
func (_c *MockChainClient_BlockByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *MockChainClient_BlockByNumber_Call
func (*MockChainClient_BlockByNumber_Call) RunAndReturn ¶ added in v0.2.0
func (_c *MockChainClient_BlockByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Block, error)) *MockChainClient_BlockByNumber_Call
type MockChainClient_BlockNumber_Call ¶
MockChainClient_BlockNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockNumber'
func (*MockChainClient_BlockNumber_Call) Return ¶
func (_c *MockChainClient_BlockNumber_Call) Return(_a0 uint64, _a1 error) *MockChainClient_BlockNumber_Call
func (*MockChainClient_BlockNumber_Call) Run ¶
func (_c *MockChainClient_BlockNumber_Call) Run(run func(ctx context.Context)) *MockChainClient_BlockNumber_Call
func (*MockChainClient_BlockNumber_Call) RunAndReturn ¶
func (_c *MockChainClient_BlockNumber_Call) RunAndReturn(run func(context.Context) (uint64, error)) *MockChainClient_BlockNumber_Call
type MockChainClient_ChainID_Call ¶
MockChainClient_ChainID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChainID'
func (*MockChainClient_ChainID_Call) Return ¶
func (_c *MockChainClient_ChainID_Call) Return(_a0 *big.Int, _a1 error) *MockChainClient_ChainID_Call
func (*MockChainClient_ChainID_Call) Run ¶
func (_c *MockChainClient_ChainID_Call) Run(run func(ctx context.Context)) *MockChainClient_ChainID_Call
func (*MockChainClient_ChainID_Call) RunAndReturn ¶
func (_c *MockChainClient_ChainID_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *MockChainClient_ChainID_Call
type MockChainClient_Expecter ¶
type MockChainClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockChainClient_Expecter) BlockByHash ¶ added in v0.2.0
func (_e *MockChainClient_Expecter) BlockByHash(ctx interface{}, hash interface{}) *MockChainClient_BlockByHash_Call
BlockByHash is a helper method to define mock.On call
- ctx context.Context
- hash common.Hash
func (*MockChainClient_Expecter) BlockByNumber ¶ added in v0.2.0
func (_e *MockChainClient_Expecter) BlockByNumber(ctx interface{}, number interface{}) *MockChainClient_BlockByNumber_Call
BlockByNumber is a helper method to define mock.On call
- ctx context.Context
- number *big.Int
func (*MockChainClient_Expecter) BlockNumber ¶
func (_e *MockChainClient_Expecter) BlockNumber(ctx interface{}) *MockChainClient_BlockNumber_Call
BlockNumber is a helper method to define mock.On call
- ctx context.Context
func (*MockChainClient_Expecter) ChainID ¶
func (_e *MockChainClient_Expecter) ChainID(ctx interface{}) *MockChainClient_ChainID_Call
ChainID is a helper method to define mock.On call
- ctx context.Context
func (*MockChainClient_Expecter) FilterLogs ¶
func (_e *MockChainClient_Expecter) FilterLogs(ctx interface{}, q interface{}) *MockChainClient_FilterLogs_Call
FilterLogs is a helper method to define mock.On call
- ctx context.Context
- q ethereum.FilterQuery
func (*MockChainClient_Expecter) HeaderByHash ¶ added in v0.2.0
func (_e *MockChainClient_Expecter) HeaderByHash(ctx interface{}, hash interface{}) *MockChainClient_HeaderByHash_Call
HeaderByHash is a helper method to define mock.On call
- ctx context.Context
- hash common.Hash
func (*MockChainClient_Expecter) HeaderByNumber ¶ added in v0.2.0
func (_e *MockChainClient_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *MockChainClient_HeaderByNumber_Call
HeaderByNumber is a helper method to define mock.On call
- ctx context.Context
- number *big.Int
func (*MockChainClient_Expecter) SubscribeFilterLogs ¶
func (_e *MockChainClient_Expecter) SubscribeFilterLogs(ctx interface{}, q interface{}, ch interface{}) *MockChainClient_SubscribeFilterLogs_Call
SubscribeFilterLogs is a helper method to define mock.On call
- ctx context.Context
- q ethereum.FilterQuery
- ch chan<- types.Log
func (*MockChainClient_Expecter) SubscribeNewHead ¶ added in v0.2.0
func (_e *MockChainClient_Expecter) SubscribeNewHead(ctx interface{}, ch interface{}) *MockChainClient_SubscribeNewHead_Call
SubscribeNewHead is a helper method to define mock.On call
- ctx context.Context
- ch chan<- *types.Header
func (*MockChainClient_Expecter) TransactionCount ¶ added in v0.2.0
func (_e *MockChainClient_Expecter) TransactionCount(ctx interface{}, blockHash interface{}) *MockChainClient_TransactionCount_Call
TransactionCount is a helper method to define mock.On call
- ctx context.Context
- blockHash common.Hash
func (*MockChainClient_Expecter) TransactionInBlock ¶ added in v0.2.0
func (_e *MockChainClient_Expecter) TransactionInBlock(ctx interface{}, blockHash interface{}, index interface{}) *MockChainClient_TransactionInBlock_Call
TransactionInBlock is a helper method to define mock.On call
- ctx context.Context
- blockHash common.Hash
- index uint
type MockChainClient_FilterLogs_Call ¶
MockChainClient_FilterLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FilterLogs'
func (*MockChainClient_FilterLogs_Call) Return ¶
func (_c *MockChainClient_FilterLogs_Call) Return(_a0 []types.Log, _a1 error) *MockChainClient_FilterLogs_Call
func (*MockChainClient_FilterLogs_Call) Run ¶
func (_c *MockChainClient_FilterLogs_Call) Run(run func(ctx context.Context, q ethereum.FilterQuery)) *MockChainClient_FilterLogs_Call
func (*MockChainClient_FilterLogs_Call) RunAndReturn ¶
func (_c *MockChainClient_FilterLogs_Call) RunAndReturn(run func(context.Context, ethereum.FilterQuery) ([]types.Log, error)) *MockChainClient_FilterLogs_Call
type MockChainClient_HeaderByHash_Call ¶ added in v0.2.0
MockChainClient_HeaderByHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeaderByHash'
func (*MockChainClient_HeaderByHash_Call) Return ¶ added in v0.2.0
func (_c *MockChainClient_HeaderByHash_Call) Return(_a0 *types.Header, _a1 error) *MockChainClient_HeaderByHash_Call
func (*MockChainClient_HeaderByHash_Call) Run ¶ added in v0.2.0
func (_c *MockChainClient_HeaderByHash_Call) Run(run func(ctx context.Context, hash common.Hash)) *MockChainClient_HeaderByHash_Call
func (*MockChainClient_HeaderByHash_Call) RunAndReturn ¶ added in v0.2.0
func (_c *MockChainClient_HeaderByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Header, error)) *MockChainClient_HeaderByHash_Call
type MockChainClient_HeaderByNumber_Call ¶ added in v0.2.0
MockChainClient_HeaderByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeaderByNumber'
func (*MockChainClient_HeaderByNumber_Call) Return ¶ added in v0.2.0
func (_c *MockChainClient_HeaderByNumber_Call) Return(_a0 *types.Header, _a1 error) *MockChainClient_HeaderByNumber_Call
func (*MockChainClient_HeaderByNumber_Call) Run ¶ added in v0.2.0
func (_c *MockChainClient_HeaderByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *MockChainClient_HeaderByNumber_Call
func (*MockChainClient_HeaderByNumber_Call) RunAndReturn ¶ added in v0.2.0
func (_c *MockChainClient_HeaderByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Header, error)) *MockChainClient_HeaderByNumber_Call
type MockChainClient_SubscribeFilterLogs_Call ¶
MockChainClient_SubscribeFilterLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeFilterLogs'
func (*MockChainClient_SubscribeFilterLogs_Call) Return ¶
func (_c *MockChainClient_SubscribeFilterLogs_Call) Return(_a0 ethereum.Subscription, _a1 error) *MockChainClient_SubscribeFilterLogs_Call
func (*MockChainClient_SubscribeFilterLogs_Call) Run ¶
func (_c *MockChainClient_SubscribeFilterLogs_Call) Run(run func(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log)) *MockChainClient_SubscribeFilterLogs_Call
func (*MockChainClient_SubscribeFilterLogs_Call) RunAndReturn ¶
func (_c *MockChainClient_SubscribeFilterLogs_Call) RunAndReturn(run func(context.Context, ethereum.FilterQuery, chan<- types.Log) (ethereum.Subscription, error)) *MockChainClient_SubscribeFilterLogs_Call
type MockChainClient_SubscribeNewHead_Call ¶ added in v0.2.0
MockChainClient_SubscribeNewHead_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeNewHead'
func (*MockChainClient_SubscribeNewHead_Call) Return ¶ added in v0.2.0
func (_c *MockChainClient_SubscribeNewHead_Call) Return(_a0 ethereum.Subscription, _a1 error) *MockChainClient_SubscribeNewHead_Call
func (*MockChainClient_SubscribeNewHead_Call) Run ¶ added in v0.2.0
func (_c *MockChainClient_SubscribeNewHead_Call) Run(run func(ctx context.Context, ch chan<- *types.Header)) *MockChainClient_SubscribeNewHead_Call
func (*MockChainClient_SubscribeNewHead_Call) RunAndReturn ¶ added in v0.2.0
func (_c *MockChainClient_SubscribeNewHead_Call) RunAndReturn(run func(context.Context, chan<- *types.Header) (ethereum.Subscription, error)) *MockChainClient_SubscribeNewHead_Call
type MockChainClient_TransactionCount_Call ¶ added in v0.2.0
MockChainClient_TransactionCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionCount'
func (*MockChainClient_TransactionCount_Call) Return ¶ added in v0.2.0
func (_c *MockChainClient_TransactionCount_Call) Return(_a0 uint, _a1 error) *MockChainClient_TransactionCount_Call
func (*MockChainClient_TransactionCount_Call) Run ¶ added in v0.2.0
func (_c *MockChainClient_TransactionCount_Call) Run(run func(ctx context.Context, blockHash common.Hash)) *MockChainClient_TransactionCount_Call
func (*MockChainClient_TransactionCount_Call) RunAndReturn ¶ added in v0.2.0
func (_c *MockChainClient_TransactionCount_Call) RunAndReturn(run func(context.Context, common.Hash) (uint, error)) *MockChainClient_TransactionCount_Call
type MockChainClient_TransactionInBlock_Call ¶ added in v0.2.0
MockChainClient_TransactionInBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionInBlock'
func (*MockChainClient_TransactionInBlock_Call) Return ¶ added in v0.2.0
func (_c *MockChainClient_TransactionInBlock_Call) Return(_a0 *types.Transaction, _a1 error) *MockChainClient_TransactionInBlock_Call
func (*MockChainClient_TransactionInBlock_Call) Run ¶ added in v0.2.0
func (_c *MockChainClient_TransactionInBlock_Call) Run(run func(ctx context.Context, blockHash common.Hash, index uint)) *MockChainClient_TransactionInBlock_Call
func (*MockChainClient_TransactionInBlock_Call) RunAndReturn ¶ added in v0.2.0
func (_c *MockChainClient_TransactionInBlock_Call) RunAndReturn(run func(context.Context, common.Hash, uint) (*types.Transaction, error)) *MockChainClient_TransactionInBlock_Call
type MockIBlockchainPublisher ¶
MockIBlockchainPublisher is an autogenerated mock type for the IBlockchainPublisher type
func NewMockIBlockchainPublisher ¶
func NewMockIBlockchainPublisher(t interface {
mock.TestingT
Cleanup(func())
}) *MockIBlockchainPublisher
NewMockIBlockchainPublisher creates a new instance of MockIBlockchainPublisher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockIBlockchainPublisher) BootstrapGroupMessages ¶ added in v0.5.0
func (_m *MockIBlockchainPublisher) BootstrapGroupMessages(ctx context.Context, groupIDs [][16]byte, messages [][]byte, sequenceIDs []uint64) ([]*groupmessagebroadcaster.GroupMessageBroadcasterMessageSent, error)
BootstrapGroupMessages provides a mock function with given fields: ctx, groupIDs, messages, sequenceIDs
func (*MockIBlockchainPublisher) BootstrapIdentityUpdates ¶ added in v0.5.0
func (_m *MockIBlockchainPublisher) BootstrapIdentityUpdates(ctx context.Context, inboxIDs [][32]byte, identityUpdates [][]byte, sequenceIDs []uint64) ([]*identityupdatebroadcaster.IdentityUpdateBroadcasterIdentityUpdateCreated, error)
BootstrapIdentityUpdates provides a mock function with given fields: ctx, inboxIDs, identityUpdates, sequenceIDs
func (*MockIBlockchainPublisher) Close ¶ added in v0.5.0
func (_m *MockIBlockchainPublisher) Close()
Close provides a mock function with no fields
func (*MockIBlockchainPublisher) EXPECT ¶
func (_m *MockIBlockchainPublisher) EXPECT() *MockIBlockchainPublisher_Expecter
func (*MockIBlockchainPublisher) PublishGroupMessage ¶
func (_m *MockIBlockchainPublisher) PublishGroupMessage(ctx context.Context, groupID [16]byte, message []byte) (*groupmessagebroadcaster.GroupMessageBroadcasterMessageSent, error)
PublishGroupMessage provides a mock function with given fields: ctx, groupID, message
func (*MockIBlockchainPublisher) PublishIdentityUpdate ¶
func (_m *MockIBlockchainPublisher) PublishIdentityUpdate(ctx context.Context, inboxID [32]byte, identityUpdate []byte) (*identityupdatebroadcaster.IdentityUpdateBroadcasterIdentityUpdateCreated, error)
PublishIdentityUpdate provides a mock function with given fields: ctx, inboxID, identityUpdate
type MockIBlockchainPublisher_BootstrapGroupMessages_Call ¶ added in v0.5.0
MockIBlockchainPublisher_BootstrapGroupMessages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BootstrapGroupMessages'
func (*MockIBlockchainPublisher_BootstrapGroupMessages_Call) Run ¶ added in v0.5.0
func (_c *MockIBlockchainPublisher_BootstrapGroupMessages_Call) Run(run func(ctx context.Context, groupIDs [][16]byte, messages [][]byte, sequenceIDs []uint64)) *MockIBlockchainPublisher_BootstrapGroupMessages_Call
func (*MockIBlockchainPublisher_BootstrapGroupMessages_Call) RunAndReturn ¶ added in v0.5.0
func (_c *MockIBlockchainPublisher_BootstrapGroupMessages_Call) RunAndReturn(run func(context.Context, [][16]byte, [][]byte, []uint64) ([]*groupmessagebroadcaster.GroupMessageBroadcasterMessageSent, error)) *MockIBlockchainPublisher_BootstrapGroupMessages_Call
type MockIBlockchainPublisher_BootstrapIdentityUpdates_Call ¶ added in v0.5.0
MockIBlockchainPublisher_BootstrapIdentityUpdates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BootstrapIdentityUpdates'
func (*MockIBlockchainPublisher_BootstrapIdentityUpdates_Call) Run ¶ added in v0.5.0
func (_c *MockIBlockchainPublisher_BootstrapIdentityUpdates_Call) Run(run func(ctx context.Context, inboxIDs [][32]byte, identityUpdates [][]byte, sequenceIDs []uint64)) *MockIBlockchainPublisher_BootstrapIdentityUpdates_Call
func (*MockIBlockchainPublisher_BootstrapIdentityUpdates_Call) RunAndReturn ¶ added in v0.5.0
func (_c *MockIBlockchainPublisher_BootstrapIdentityUpdates_Call) RunAndReturn(run func(context.Context, [][32]byte, [][]byte, []uint64) ([]*identityupdatebroadcaster.IdentityUpdateBroadcasterIdentityUpdateCreated, error)) *MockIBlockchainPublisher_BootstrapIdentityUpdates_Call
type MockIBlockchainPublisher_Close_Call ¶ added in v0.5.0
MockIBlockchainPublisher_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockIBlockchainPublisher_Close_Call) Return ¶ added in v0.5.0
func (_c *MockIBlockchainPublisher_Close_Call) Return() *MockIBlockchainPublisher_Close_Call
func (*MockIBlockchainPublisher_Close_Call) Run ¶ added in v0.5.0
func (_c *MockIBlockchainPublisher_Close_Call) Run(run func()) *MockIBlockchainPublisher_Close_Call
func (*MockIBlockchainPublisher_Close_Call) RunAndReturn ¶ added in v0.5.0
func (_c *MockIBlockchainPublisher_Close_Call) RunAndReturn(run func()) *MockIBlockchainPublisher_Close_Call
type MockIBlockchainPublisher_Expecter ¶
type MockIBlockchainPublisher_Expecter struct {
// contains filtered or unexported fields
}
func (*MockIBlockchainPublisher_Expecter) BootstrapGroupMessages ¶ added in v0.5.0
func (_e *MockIBlockchainPublisher_Expecter) BootstrapGroupMessages(ctx interface{}, groupIDs interface{}, messages interface{}, sequenceIDs interface{}) *MockIBlockchainPublisher_BootstrapGroupMessages_Call
BootstrapGroupMessages is a helper method to define mock.On call
- ctx context.Context
- groupIDs [][16]byte
- messages [][]byte
- sequenceIDs []uint64
func (*MockIBlockchainPublisher_Expecter) BootstrapIdentityUpdates ¶ added in v0.5.0
func (_e *MockIBlockchainPublisher_Expecter) BootstrapIdentityUpdates(ctx interface{}, inboxIDs interface{}, identityUpdates interface{}, sequenceIDs interface{}) *MockIBlockchainPublisher_BootstrapIdentityUpdates_Call
BootstrapIdentityUpdates is a helper method to define mock.On call
- ctx context.Context
- inboxIDs [][32]byte
- identityUpdates [][]byte
- sequenceIDs []uint64
func (*MockIBlockchainPublisher_Expecter) Close ¶ added in v0.5.0
func (_e *MockIBlockchainPublisher_Expecter) Close() *MockIBlockchainPublisher_Close_Call
Close is a helper method to define mock.On call
func (*MockIBlockchainPublisher_Expecter) PublishGroupMessage ¶
func (_e *MockIBlockchainPublisher_Expecter) PublishGroupMessage(ctx interface{}, groupID interface{}, message interface{}) *MockIBlockchainPublisher_PublishGroupMessage_Call
PublishGroupMessage is a helper method to define mock.On call
- ctx context.Context
- groupID [16]byte
- message []byte
func (*MockIBlockchainPublisher_Expecter) PublishIdentityUpdate ¶
func (_e *MockIBlockchainPublisher_Expecter) PublishIdentityUpdate(ctx interface{}, inboxID interface{}, identityUpdate interface{}) *MockIBlockchainPublisher_PublishIdentityUpdate_Call
PublishIdentityUpdate is a helper method to define mock.On call
- ctx context.Context
- inboxID [32]byte
- identityUpdate []byte
type MockIBlockchainPublisher_PublishGroupMessage_Call ¶
MockIBlockchainPublisher_PublishGroupMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PublishGroupMessage'
func (*MockIBlockchainPublisher_PublishGroupMessage_Call) Run ¶
func (_c *MockIBlockchainPublisher_PublishGroupMessage_Call) Run(run func(ctx context.Context, groupID [16]byte, message []byte)) *MockIBlockchainPublisher_PublishGroupMessage_Call
func (*MockIBlockchainPublisher_PublishGroupMessage_Call) RunAndReturn ¶
func (_c *MockIBlockchainPublisher_PublishGroupMessage_Call) RunAndReturn(run func(context.Context, [16]byte, []byte) (*groupmessagebroadcaster.GroupMessageBroadcasterMessageSent, error)) *MockIBlockchainPublisher_PublishGroupMessage_Call
type MockIBlockchainPublisher_PublishIdentityUpdate_Call ¶
MockIBlockchainPublisher_PublishIdentityUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PublishIdentityUpdate'
func (*MockIBlockchainPublisher_PublishIdentityUpdate_Call) Run ¶
func (_c *MockIBlockchainPublisher_PublishIdentityUpdate_Call) Run(run func(ctx context.Context, inboxID [32]byte, identityUpdate []byte)) *MockIBlockchainPublisher_PublishIdentityUpdate_Call
func (*MockIBlockchainPublisher_PublishIdentityUpdate_Call) RunAndReturn ¶
func (_c *MockIBlockchainPublisher_PublishIdentityUpdate_Call) RunAndReturn(run func(context.Context, [32]byte, []byte) (*identityupdatebroadcaster.IdentityUpdateBroadcasterIdentityUpdateCreated, error)) *MockIBlockchainPublisher_PublishIdentityUpdate_Call