blockchain

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockChainClient

type MockChainClient struct {
	mock.Mock
}

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) ChainID

func (_m *MockChainClient) ChainID(ctx context.Context) (*big.Int, error)

ChainID provides a mock function with given fields: ctx

func (*MockChainClient) EXPECT

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

type MockChainClient_BlockNumber_Call struct {
	*mock.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 (*MockChainClient_BlockNumber_Call) Run

func (*MockChainClient_BlockNumber_Call) RunAndReturn

type MockChainClient_ChainID_Call

type MockChainClient_ChainID_Call struct {
	*mock.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 (*MockChainClient_ChainID_Call) Run

func (*MockChainClient_ChainID_Call) RunAndReturn

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

type MockChainClient_FilterLogs_Call struct {
	*mock.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 (*MockChainClient_FilterLogs_Call) Run

func (*MockChainClient_FilterLogs_Call) RunAndReturn

type MockChainClient_SubscribeFilterLogs_Call

type MockChainClient_SubscribeFilterLogs_Call struct {
	*mock.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 (*MockChainClient_SubscribeFilterLogs_Call) Run

func (*MockChainClient_SubscribeFilterLogs_Call) RunAndReturn

type MockIBlockchainPublisher

type MockIBlockchainPublisher struct {
	mock.Mock
}

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 (*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

type MockIBlockchainPublisher_PublishGroupMessage_Call struct {
	*mock.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 (*MockIBlockchainPublisher_PublishGroupMessage_Call) Run

func (*MockIBlockchainPublisher_PublishGroupMessage_Call) RunAndReturn

type MockIBlockchainPublisher_PublishIdentityUpdate_Call

type MockIBlockchainPublisher_PublishIdentityUpdate_Call struct {
	*mock.Call
}

MockIBlockchainPublisher_PublishIdentityUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PublishIdentityUpdate'

func (*MockIBlockchainPublisher_PublishIdentityUpdate_Call) Return

func (*MockIBlockchainPublisher_PublishIdentityUpdate_Call) Run

func (*MockIBlockchainPublisher_PublishIdentityUpdate_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL