blockchain

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 8 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) BlockByHash added in v0.2.0

func (_m *MockChainClient) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)

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

type MockChainClient_BlockByHash_Call struct {
	*mock.Call
}

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 (*MockChainClient_BlockByHash_Call) Run added in v0.2.0

func (*MockChainClient_BlockByHash_Call) RunAndReturn added in v0.2.0

type MockChainClient_BlockByNumber_Call added in v0.2.0

type MockChainClient_BlockByNumber_Call struct {
	*mock.Call
}

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 (*MockChainClient_BlockByNumber_Call) Run added in v0.2.0

func (*MockChainClient_BlockByNumber_Call) RunAndReturn added in v0.2.0

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

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_HeaderByHash_Call added in v0.2.0

type MockChainClient_HeaderByHash_Call struct {
	*mock.Call
}

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 (*MockChainClient_HeaderByHash_Call) Run added in v0.2.0

func (*MockChainClient_HeaderByHash_Call) RunAndReturn added in v0.2.0

type MockChainClient_HeaderByNumber_Call added in v0.2.0

type MockChainClient_HeaderByNumber_Call struct {
	*mock.Call
}

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 (*MockChainClient_HeaderByNumber_Call) Run added in v0.2.0

func (*MockChainClient_HeaderByNumber_Call) RunAndReturn added in v0.2.0

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 MockChainClient_SubscribeNewHead_Call added in v0.2.0

type MockChainClient_SubscribeNewHead_Call struct {
	*mock.Call
}

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 (*MockChainClient_SubscribeNewHead_Call) Run added in v0.2.0

func (*MockChainClient_SubscribeNewHead_Call) RunAndReturn added in v0.2.0

type MockChainClient_TransactionCount_Call added in v0.2.0

type MockChainClient_TransactionCount_Call struct {
	*mock.Call
}

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 (*MockChainClient_TransactionCount_Call) Run added in v0.2.0

func (*MockChainClient_TransactionCount_Call) RunAndReturn added in v0.2.0

type MockChainClient_TransactionInBlock_Call added in v0.2.0

type MockChainClient_TransactionInBlock_Call struct {
	*mock.Call
}

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 (*MockChainClient_TransactionInBlock_Call) Run added in v0.2.0

func (*MockChainClient_TransactionInBlock_Call) RunAndReturn added in v0.2.0

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) (*groupmessages.GroupMessagesMessageSent, 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) (*identityupdates.IdentityUpdatesIdentityUpdateCreated, 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) 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) Run

Jump to

Keyboard shortcuts

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