Documentation ¶
Index ¶
- type MockChainClient
- 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) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- 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) 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) SubscribeFilterLogs(ctx interface{}, q interface{}, ch interface{}) *MockChainClient_SubscribeFilterLogs_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_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 MockIBlockchainPublisher
- func (_m *MockIBlockchainPublisher) EXPECT() *MockIBlockchainPublisher_Expecter
- func (_m *MockIBlockchainPublisher) PublishGroupMessage(ctx context.Context, groupdId [32]byte, message []byte) error
- func (_m *MockIBlockchainPublisher) PublishIdentityUpdate(ctx context.Context, inboxId [32]byte, identityUpdate []byte) error
- type MockIBlockchainPublisher_Expecter
- func (_e *MockIBlockchainPublisher_Expecter) PublishGroupMessage(ctx interface{}, groupdId 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 error) *MockIBlockchainPublisher_PublishGroupMessage_Call
- func (_c *MockIBlockchainPublisher_PublishGroupMessage_Call) Run(run func(ctx context.Context, groupdId [32]byte, message []byte)) *MockIBlockchainPublisher_PublishGroupMessage_Call
- func (_c *MockIBlockchainPublisher_PublishGroupMessage_Call) RunAndReturn(run func(context.Context, [32]byte, []byte) error) *MockIBlockchainPublisher_PublishGroupMessage_Call
- type MockIBlockchainPublisher_PublishIdentityUpdate_Call
- func (_c *MockIBlockchainPublisher_PublishIdentityUpdate_Call) Return(_a0 error) *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(run func(context.Context, [32]byte, []byte) error) *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) 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) 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
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) 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) 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
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_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 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) EXPECT ¶
func (_m *MockIBlockchainPublisher) EXPECT() *MockIBlockchainPublisher_Expecter
func (*MockIBlockchainPublisher) PublishGroupMessage ¶
func (_m *MockIBlockchainPublisher) PublishGroupMessage(ctx context.Context, groupdId [32]byte, message []byte) error
PublishGroupMessage provides a mock function with given fields: ctx, groupdId, message
func (*MockIBlockchainPublisher) PublishIdentityUpdate ¶
func (_m *MockIBlockchainPublisher) PublishIdentityUpdate(ctx context.Context, inboxId [32]byte, identityUpdate []byte) error
PublishIdentityUpdate provides a mock function with given fields: ctx, inboxId, identityUpdate
type MockIBlockchainPublisher_Expecter ¶
type MockIBlockchainPublisher_Expecter struct {
// contains filtered or unexported fields
}
func (*MockIBlockchainPublisher_Expecter) PublishGroupMessage ¶
func (_e *MockIBlockchainPublisher_Expecter) PublishGroupMessage(ctx interface{}, groupdId interface{}, message interface{}) *MockIBlockchainPublisher_PublishGroupMessage_Call
PublishGroupMessage is a helper method to define mock.On call
- ctx context.Context
- groupdId [32]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) Return ¶
func (_c *MockIBlockchainPublisher_PublishGroupMessage_Call) Return(_a0 error) *MockIBlockchainPublisher_PublishGroupMessage_Call
func (*MockIBlockchainPublisher_PublishGroupMessage_Call) Run ¶
func (_c *MockIBlockchainPublisher_PublishGroupMessage_Call) Run(run func(ctx context.Context, groupdId [32]byte, message []byte)) *MockIBlockchainPublisher_PublishGroupMessage_Call
func (*MockIBlockchainPublisher_PublishGroupMessage_Call) RunAndReturn ¶
func (_c *MockIBlockchainPublisher_PublishGroupMessage_Call) RunAndReturn(run func(context.Context, [32]byte, []byte) 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) error) *MockIBlockchainPublisher_PublishIdentityUpdate_Call