Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockProvider
- func (m *MockProvider) AddEVMTransaction(id types.MessageID, msgValue any, tx *sign.Transaction, evmTxHash string) (uint64, types.TxHash)
- func (m *MockProvider) ConsumeEVMMsgResult(evmTxHash string) ([]byte, []error, string, bool)
- func (m *MockProvider) EXPECT() *MockProviderMockRecorder
- func (m *MockProvider) GetMessageByFullName(arg0 string) (types.Message, bool)
- func (m *MockProvider) GetMessageByID(id types.MessageID) (types.Message, bool)
- func (m *MockProvider) GetSignerComponentForPersona(arg0 string) (*component.SignerComponent, error)
- func (m *MockProvider) HandleQueryEVM(group, name string, abiRequest []byte) ([]byte, error)
- func (m *MockProvider) WaitForNextTick() bool
- type MockProviderMockRecorder
- func (mr *MockProviderMockRecorder) AddEVMTransaction(id, msgValue, tx, evmTxHash interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) ConsumeEVMMsgResult(evmTxHash interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) GetMessageByFullName(arg0 interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) GetMessageByID(id interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) GetSignerComponentForPersona(arg0 interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) HandleQueryEVM(group, name, abiRequest interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) WaitForNextTick() *gomock.Call
- type MockRouter
- func (m *MockRouter) EXPECT() *MockRouterMockRecorder
- func (m *MockRouter) RegisterGameShard(arg0 context.Context) error
- func (m *MockRouter) Shutdown()
- func (m *MockRouter) Start() error
- func (m *MockRouter) SubmitTxBlob(ctx context.Context, processedTxs txpool.TxMap, epoch, unixTimestamp uint64) error
- func (m *MockRouter) TransactionIterator() iterator.Iterator
- type MockRouterMockRecorder
- func (mr *MockRouterMockRecorder) RegisterGameShard(arg0 interface{}) *gomock.Call
- func (mr *MockRouterMockRecorder) Shutdown() *gomock.Call
- func (mr *MockRouterMockRecorder) Start() *gomock.Call
- func (mr *MockRouterMockRecorder) SubmitTxBlob(ctx, processedTxs, epoch, unixTimestamp interface{}) *gomock.Call
- func (mr *MockRouterMockRecorder) TransactionIterator() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockProvider ¶
type MockProvider struct {
// contains filtered or unexported fields
}
MockProvider is a mock of Provider interface.
func NewMockProvider ¶
func NewMockProvider(ctrl *gomock.Controller) *MockProvider
NewMockProvider creates a new mock instance.
func (*MockProvider) AddEVMTransaction ¶
func (m *MockProvider) AddEVMTransaction(id types.MessageID, msgValue any, tx *sign.Transaction, evmTxHash string) (uint64, types.TxHash)
AddEVMTransaction mocks base method.
func (*MockProvider) ConsumeEVMMsgResult ¶
ConsumeEVMMsgResult mocks base method.
func (*MockProvider) EXPECT ¶
func (m *MockProvider) EXPECT() *MockProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProvider) GetMessageByFullName ¶
func (m *MockProvider) GetMessageByFullName(arg0 string) (types.Message, bool)
GetMessageByFullName mocks base method.
func (*MockProvider) GetMessageByID ¶
GetMessageByID mocks base method.
func (*MockProvider) GetSignerComponentForPersona ¶
func (m *MockProvider) GetSignerComponentForPersona(arg0 string) (*component.SignerComponent, error)
GetSignerComponentForPersona mocks base method.
func (*MockProvider) HandleQueryEVM ¶
func (m *MockProvider) HandleQueryEVM(group, name string, abiRequest []byte) ([]byte, error)
HandleQueryEVM mocks base method.
func (*MockProvider) WaitForNextTick ¶
func (m *MockProvider) WaitForNextTick() bool
WaitForNextTick mocks base method.
type MockProviderMockRecorder ¶
type MockProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockProviderMockRecorder is the mock recorder for MockProvider.
func (*MockProviderMockRecorder) AddEVMTransaction ¶
func (mr *MockProviderMockRecorder) AddEVMTransaction(id, msgValue, tx, evmTxHash interface{}) *gomock.Call
AddEVMTransaction indicates an expected call of AddEVMTransaction.
func (*MockProviderMockRecorder) ConsumeEVMMsgResult ¶
func (mr *MockProviderMockRecorder) ConsumeEVMMsgResult(evmTxHash interface{}) *gomock.Call
ConsumeEVMMsgResult indicates an expected call of ConsumeEVMMsgResult.
func (*MockProviderMockRecorder) GetMessageByFullName ¶
func (mr *MockProviderMockRecorder) GetMessageByFullName(arg0 interface{}) *gomock.Call
GetMessageByFullName indicates an expected call of GetMessageByFullName.
func (*MockProviderMockRecorder) GetMessageByID ¶
func (mr *MockProviderMockRecorder) GetMessageByID(id interface{}) *gomock.Call
GetMessageByID indicates an expected call of GetMessageByID.
func (*MockProviderMockRecorder) GetSignerComponentForPersona ¶
func (mr *MockProviderMockRecorder) GetSignerComponentForPersona(arg0 interface{}) *gomock.Call
GetSignerComponentForPersona indicates an expected call of GetSignerComponentForPersona.
func (*MockProviderMockRecorder) HandleQueryEVM ¶
func (mr *MockProviderMockRecorder) HandleQueryEVM(group, name, abiRequest interface{}) *gomock.Call
HandleQueryEVM indicates an expected call of HandleQueryEVM.
func (*MockProviderMockRecorder) WaitForNextTick ¶
func (mr *MockProviderMockRecorder) WaitForNextTick() *gomock.Call
WaitForNextTick indicates an expected call of WaitForNextTick.
type MockRouter ¶
type MockRouter struct {
// contains filtered or unexported fields
}
MockRouter is a mock of Router interface.
func NewMockRouter ¶
func NewMockRouter(ctrl *gomock.Controller) *MockRouter
NewMockRouter creates a new mock instance.
func (*MockRouter) EXPECT ¶
func (m *MockRouter) EXPECT() *MockRouterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRouter) RegisterGameShard ¶
func (m *MockRouter) RegisterGameShard(arg0 context.Context) error
RegisterGameShard mocks base method.
func (*MockRouter) SubmitTxBlob ¶
func (m *MockRouter) SubmitTxBlob(ctx context.Context, processedTxs txpool.TxMap, epoch, unixTimestamp uint64) error
SubmitTxBlob mocks base method.
func (*MockRouter) TransactionIterator ¶
func (m *MockRouter) TransactionIterator() iterator.Iterator
TransactionIterator mocks base method.
type MockRouterMockRecorder ¶
type MockRouterMockRecorder struct {
// contains filtered or unexported fields
}
MockRouterMockRecorder is the mock recorder for MockRouter.
func (*MockRouterMockRecorder) RegisterGameShard ¶
func (mr *MockRouterMockRecorder) RegisterGameShard(arg0 interface{}) *gomock.Call
RegisterGameShard indicates an expected call of RegisterGameShard.
func (*MockRouterMockRecorder) Shutdown ¶
func (mr *MockRouterMockRecorder) Shutdown() *gomock.Call
Shutdown indicates an expected call of Shutdown.
func (*MockRouterMockRecorder) Start ¶
func (mr *MockRouterMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockRouterMockRecorder) SubmitTxBlob ¶
func (mr *MockRouterMockRecorder) SubmitTxBlob(ctx, processedTxs, epoch, unixTimestamp interface{}) *gomock.Call
SubmitTxBlob indicates an expected call of SubmitTxBlob.
func (*MockRouterMockRecorder) TransactionIterator ¶
func (mr *MockRouterMockRecorder) TransactionIterator() *gomock.Call
TransactionIterator indicates an expected call of TransactionIterator.