Documentation
¶
Index ¶
- type PendingBlock
- func (_m *PendingBlock) Abort(ctx context.Context) error
- func (_m *PendingBlock) AddEvmLog(ctx context.Context, log *ethrpc.EvmLog) error
- func (_m *PendingBlock) AddEvmTransaction(ctx context.Context, tx *ethrpc.EvmTransaction) error
- func (_m *PendingBlock) ClaimMempoolEntries(ctx context.Context, maxTxsPerBlock int) ([]ethrpc.MempoolEntry, error)
- func (_m *PendingBlock) EXPECT() *PendingBlock_Expecter
- func (_m *PendingBlock) Finalize(ctx context.Context) error
- func (_m *PendingBlock) Hash() []byte
- func (_m *PendingBlock) Number() uint64
- type PendingBlock_Abort_Call
- type PendingBlock_AddEvmLog_Call
- func (_c *PendingBlock_AddEvmLog_Call) Return(_a0 error) *PendingBlock_AddEvmLog_Call
- func (_c *PendingBlock_AddEvmLog_Call) Run(run func(ctx context.Context, log *ethrpc.EvmLog)) *PendingBlock_AddEvmLog_Call
- func (_c *PendingBlock_AddEvmLog_Call) RunAndReturn(run func(context.Context, *ethrpc.EvmLog) error) *PendingBlock_AddEvmLog_Call
- type PendingBlock_AddEvmTransaction_Call
- func (_c *PendingBlock_AddEvmTransaction_Call) Return(_a0 error) *PendingBlock_AddEvmTransaction_Call
- func (_c *PendingBlock_AddEvmTransaction_Call) Run(run func(ctx context.Context, tx *ethrpc.EvmTransaction)) *PendingBlock_AddEvmTransaction_Call
- func (_c *PendingBlock_AddEvmTransaction_Call) RunAndReturn(run func(context.Context, *ethrpc.EvmTransaction) error) *PendingBlock_AddEvmTransaction_Call
- type PendingBlock_ClaimMempoolEntries_Call
- func (_c *PendingBlock_ClaimMempoolEntries_Call) Return(_a0 []ethrpc.MempoolEntry, _a1 error) *PendingBlock_ClaimMempoolEntries_Call
- func (_c *PendingBlock_ClaimMempoolEntries_Call) Run(run func(ctx context.Context, maxTxsPerBlock int)) *PendingBlock_ClaimMempoolEntries_Call
- func (_c *PendingBlock_ClaimMempoolEntries_Call) RunAndReturn(run func(context.Context, int) ([]ethrpc.MempoolEntry, error)) *PendingBlock_ClaimMempoolEntries_Call
- type PendingBlock_Expecter
- func (_e *PendingBlock_Expecter) Abort(ctx interface{}) *PendingBlock_Abort_Call
- func (_e *PendingBlock_Expecter) AddEvmLog(ctx interface{}, log interface{}) *PendingBlock_AddEvmLog_Call
- func (_e *PendingBlock_Expecter) AddEvmTransaction(ctx interface{}, tx interface{}) *PendingBlock_AddEvmTransaction_Call
- func (_e *PendingBlock_Expecter) ClaimMempoolEntries(ctx interface{}, maxTxsPerBlock interface{}) *PendingBlock_ClaimMempoolEntries_Call
- func (_e *PendingBlock_Expecter) Finalize(ctx interface{}) *PendingBlock_Finalize_Call
- func (_e *PendingBlock_Expecter) Hash() *PendingBlock_Hash_Call
- func (_e *PendingBlock_Expecter) Number() *PendingBlock_Number_Call
- type PendingBlock_Finalize_Call
- type PendingBlock_Hash_Call
- type PendingBlock_Number_Call
- type Store
- type Store_Expecter
- type Store_NewBlock_Call
- func (_c *Store_NewBlock_Call) Return(_a0 ethrpc.PendingBlock, _a1 error) *Store_NewBlock_Call
- func (_c *Store_NewBlock_Call) Run(run func(ctx context.Context, chainID uint64)) *Store_NewBlock_Call
- func (_c *Store_NewBlock_Call) RunAndReturn(run func(context.Context, uint64) (ethrpc.PendingBlock, error)) *Store_NewBlock_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PendingBlock ¶
PendingBlock is an autogenerated mock type for the PendingBlock type
func NewPendingBlock ¶
func NewPendingBlock(t interface {
mock.TestingT
Cleanup(func())
}) *PendingBlock
NewPendingBlock creates a new instance of PendingBlock. 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 (*PendingBlock) Abort ¶
func (_m *PendingBlock) Abort(ctx context.Context) error
Abort provides a mock function with given fields: ctx
func (*PendingBlock) AddEvmTransaction ¶
func (_m *PendingBlock) AddEvmTransaction(ctx context.Context, tx *ethrpc.EvmTransaction) error
AddEvmTransaction provides a mock function with given fields: ctx, tx
func (*PendingBlock) ClaimMempoolEntries ¶
func (_m *PendingBlock) ClaimMempoolEntries(ctx context.Context, maxTxsPerBlock int) ([]ethrpc.MempoolEntry, error)
ClaimMempoolEntries provides a mock function with given fields: ctx, maxTxsPerBlock
func (*PendingBlock) EXPECT ¶
func (_m *PendingBlock) EXPECT() *PendingBlock_Expecter
func (*PendingBlock) Finalize ¶
func (_m *PendingBlock) Finalize(ctx context.Context) error
Finalize provides a mock function with given fields: ctx
func (*PendingBlock) Hash ¶
func (_m *PendingBlock) Hash() []byte
Hash provides a mock function with no fields
func (*PendingBlock) Number ¶
func (_m *PendingBlock) Number() uint64
Number provides a mock function with no fields
type PendingBlock_Abort_Call ¶
PendingBlock_Abort_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Abort'
func (*PendingBlock_Abort_Call) Return ¶
func (_c *PendingBlock_Abort_Call) Return(_a0 error) *PendingBlock_Abort_Call
func (*PendingBlock_Abort_Call) Run ¶
func (_c *PendingBlock_Abort_Call) Run(run func(ctx context.Context)) *PendingBlock_Abort_Call
func (*PendingBlock_Abort_Call) RunAndReturn ¶
func (_c *PendingBlock_Abort_Call) RunAndReturn(run func(context.Context) error) *PendingBlock_Abort_Call
type PendingBlock_AddEvmLog_Call ¶
PendingBlock_AddEvmLog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddEvmLog'
func (*PendingBlock_AddEvmLog_Call) Return ¶
func (_c *PendingBlock_AddEvmLog_Call) Return(_a0 error) *PendingBlock_AddEvmLog_Call
func (*PendingBlock_AddEvmLog_Call) Run ¶
func (_c *PendingBlock_AddEvmLog_Call) Run(run func(ctx context.Context, log *ethrpc.EvmLog)) *PendingBlock_AddEvmLog_Call
func (*PendingBlock_AddEvmLog_Call) RunAndReturn ¶
func (_c *PendingBlock_AddEvmLog_Call) RunAndReturn(run func(context.Context, *ethrpc.EvmLog) error) *PendingBlock_AddEvmLog_Call
type PendingBlock_AddEvmTransaction_Call ¶
PendingBlock_AddEvmTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddEvmTransaction'
func (*PendingBlock_AddEvmTransaction_Call) Return ¶
func (_c *PendingBlock_AddEvmTransaction_Call) Return(_a0 error) *PendingBlock_AddEvmTransaction_Call
func (*PendingBlock_AddEvmTransaction_Call) Run ¶
func (_c *PendingBlock_AddEvmTransaction_Call) Run(run func(ctx context.Context, tx *ethrpc.EvmTransaction)) *PendingBlock_AddEvmTransaction_Call
func (*PendingBlock_AddEvmTransaction_Call) RunAndReturn ¶
func (_c *PendingBlock_AddEvmTransaction_Call) RunAndReturn(run func(context.Context, *ethrpc.EvmTransaction) error) *PendingBlock_AddEvmTransaction_Call
type PendingBlock_ClaimMempoolEntries_Call ¶
PendingBlock_ClaimMempoolEntries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClaimMempoolEntries'
func (*PendingBlock_ClaimMempoolEntries_Call) Return ¶
func (_c *PendingBlock_ClaimMempoolEntries_Call) Return(_a0 []ethrpc.MempoolEntry, _a1 error) *PendingBlock_ClaimMempoolEntries_Call
func (*PendingBlock_ClaimMempoolEntries_Call) Run ¶
func (_c *PendingBlock_ClaimMempoolEntries_Call) Run(run func(ctx context.Context, maxTxsPerBlock int)) *PendingBlock_ClaimMempoolEntries_Call
func (*PendingBlock_ClaimMempoolEntries_Call) RunAndReturn ¶
func (_c *PendingBlock_ClaimMempoolEntries_Call) RunAndReturn(run func(context.Context, int) ([]ethrpc.MempoolEntry, error)) *PendingBlock_ClaimMempoolEntries_Call
type PendingBlock_Expecter ¶
type PendingBlock_Expecter struct {
// contains filtered or unexported fields
}
func (*PendingBlock_Expecter) Abort ¶
func (_e *PendingBlock_Expecter) Abort(ctx interface{}) *PendingBlock_Abort_Call
Abort is a helper method to define mock.On call
- ctx context.Context
func (*PendingBlock_Expecter) AddEvmLog ¶
func (_e *PendingBlock_Expecter) AddEvmLog(ctx interface{}, log interface{}) *PendingBlock_AddEvmLog_Call
AddEvmLog is a helper method to define mock.On call
- ctx context.Context
- log *ethrpc.EvmLog
func (*PendingBlock_Expecter) AddEvmTransaction ¶
func (_e *PendingBlock_Expecter) AddEvmTransaction(ctx interface{}, tx interface{}) *PendingBlock_AddEvmTransaction_Call
AddEvmTransaction is a helper method to define mock.On call
- ctx context.Context
- tx *ethrpc.EvmTransaction
func (*PendingBlock_Expecter) ClaimMempoolEntries ¶
func (_e *PendingBlock_Expecter) ClaimMempoolEntries(ctx interface{}, maxTxsPerBlock interface{}) *PendingBlock_ClaimMempoolEntries_Call
ClaimMempoolEntries is a helper method to define mock.On call
- ctx context.Context
- maxTxsPerBlock int
func (*PendingBlock_Expecter) Finalize ¶
func (_e *PendingBlock_Expecter) Finalize(ctx interface{}) *PendingBlock_Finalize_Call
Finalize is a helper method to define mock.On call
- ctx context.Context
func (*PendingBlock_Expecter) Hash ¶
func (_e *PendingBlock_Expecter) Hash() *PendingBlock_Hash_Call
Hash is a helper method to define mock.On call
func (*PendingBlock_Expecter) Number ¶
func (_e *PendingBlock_Expecter) Number() *PendingBlock_Number_Call
Number is a helper method to define mock.On call
type PendingBlock_Finalize_Call ¶
PendingBlock_Finalize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Finalize'
func (*PendingBlock_Finalize_Call) Return ¶
func (_c *PendingBlock_Finalize_Call) Return(_a0 error) *PendingBlock_Finalize_Call
func (*PendingBlock_Finalize_Call) Run ¶
func (_c *PendingBlock_Finalize_Call) Run(run func(ctx context.Context)) *PendingBlock_Finalize_Call
func (*PendingBlock_Finalize_Call) RunAndReturn ¶
func (_c *PendingBlock_Finalize_Call) RunAndReturn(run func(context.Context) error) *PendingBlock_Finalize_Call
type PendingBlock_Hash_Call ¶
PendingBlock_Hash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hash'
func (*PendingBlock_Hash_Call) Return ¶
func (_c *PendingBlock_Hash_Call) Return(_a0 []byte) *PendingBlock_Hash_Call
func (*PendingBlock_Hash_Call) Run ¶
func (_c *PendingBlock_Hash_Call) Run(run func()) *PendingBlock_Hash_Call
func (*PendingBlock_Hash_Call) RunAndReturn ¶
func (_c *PendingBlock_Hash_Call) RunAndReturn(run func() []byte) *PendingBlock_Hash_Call
type PendingBlock_Number_Call ¶
PendingBlock_Number_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Number'
func (*PendingBlock_Number_Call) Return ¶
func (_c *PendingBlock_Number_Call) Return(_a0 uint64) *PendingBlock_Number_Call
func (*PendingBlock_Number_Call) Run ¶
func (_c *PendingBlock_Number_Call) Run(run func()) *PendingBlock_Number_Call
func (*PendingBlock_Number_Call) RunAndReturn ¶
func (_c *PendingBlock_Number_Call) RunAndReturn(run func() uint64) *PendingBlock_Number_Call
type Store ¶
Store is an autogenerated mock type for the Store type
func NewStore ¶
NewStore creates a new instance of Store. 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 (*Store) EXPECT ¶
func (_m *Store) EXPECT() *Store_Expecter
type Store_Expecter ¶
type Store_Expecter struct {
// contains filtered or unexported fields
}
func (*Store_Expecter) NewBlock ¶
func (_e *Store_Expecter) NewBlock(ctx interface{}, chainID interface{}) *Store_NewBlock_Call
NewBlock is a helper method to define mock.On call
- ctx context.Context
- chainID uint64
type Store_NewBlock_Call ¶
Store_NewBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewBlock'
func (*Store_NewBlock_Call) Return ¶
func (_c *Store_NewBlock_Call) Return(_a0 ethrpc.PendingBlock, _a1 error) *Store_NewBlock_Call
func (*Store_NewBlock_Call) Run ¶
func (_c *Store_NewBlock_Call) Run(run func(ctx context.Context, chainID uint64)) *Store_NewBlock_Call
func (*Store_NewBlock_Call) RunAndReturn ¶
func (_c *Store_NewBlock_Call) RunAndReturn(run func(context.Context, uint64) (ethrpc.PendingBlock, error)) *Store_NewBlock_Call