Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type Mockstate
- func (m *Mockstate) AddTxToPool(tx *types.Transaction) error
- func (m *Mockstate) AddressExists(arg0 types.Address) bool
- func (m *Mockstate) ApplyLayer(layer types.LayerID, txs []*types.Transaction, ...) ([]*types.Transaction, error)
- func (m *Mockstate) EXPECT() *MockstateMockRecorder
- func (m *Mockstate) GetAllAccounts() (*types.MultipleAccountsState, error)
- func (m *Mockstate) GetBalance(arg0 types.Address) uint64
- func (m *Mockstate) GetLayerApplied(arg0 types.TransactionID) *types.LayerID
- func (m *Mockstate) GetLayerStateRoot(arg0 types.LayerID) (types.Hash32, error)
- func (m *Mockstate) GetNonce(arg0 types.Address) uint64
- func (m *Mockstate) GetStateRoot() types.Hash32
- func (m *Mockstate) Rewind(layer types.LayerID) (types.Hash32, error)
- func (m *Mockstate) ValidateNonceAndBalance(arg0 *types.Transaction) error
- type MockstateMockRecorder
- func (mr *MockstateMockRecorder) AddTxToPool(tx interface{}) *gomock.Call
- func (mr *MockstateMockRecorder) AddressExists(arg0 interface{}) *gomock.Call
- func (mr *MockstateMockRecorder) ApplyLayer(layer, txs, rewards interface{}) *gomock.Call
- func (mr *MockstateMockRecorder) GetAllAccounts() *gomock.Call
- func (mr *MockstateMockRecorder) GetBalance(arg0 interface{}) *gomock.Call
- func (mr *MockstateMockRecorder) GetLayerApplied(arg0 interface{}) *gomock.Call
- func (mr *MockstateMockRecorder) GetLayerStateRoot(arg0 interface{}) *gomock.Call
- func (mr *MockstateMockRecorder) GetNonce(arg0 interface{}) *gomock.Call
- func (mr *MockstateMockRecorder) GetStateRoot() *gomock.Call
- func (mr *MockstateMockRecorder) Rewind(layer interface{}) *gomock.Call
- func (mr *MockstateMockRecorder) ValidateNonceAndBalance(arg0 interface{}) *gomock.Call
- type Mocktortoise
- type MocktortoiseMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mockstate ¶
type Mockstate struct {
// contains filtered or unexported fields
}
Mockstate is a mock of state interface.
func NewMockstate ¶
func NewMockstate(ctrl *gomock.Controller) *Mockstate
NewMockstate creates a new mock instance.
func (*Mockstate) AddTxToPool ¶
func (m *Mockstate) AddTxToPool(tx *types.Transaction) error
AddTxToPool mocks base method.
func (*Mockstate) AddressExists ¶
AddressExists mocks base method.
func (*Mockstate) ApplyLayer ¶
func (m *Mockstate) ApplyLayer(layer types.LayerID, txs []*types.Transaction, rewards map[types.Address]uint64) ([]*types.Transaction, error)
ApplyLayer mocks base method.
func (*Mockstate) EXPECT ¶
func (m *Mockstate) EXPECT() *MockstateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Mockstate) GetAllAccounts ¶
func (m *Mockstate) GetAllAccounts() (*types.MultipleAccountsState, error)
GetAllAccounts mocks base method.
func (*Mockstate) GetBalance ¶
GetBalance mocks base method.
func (*Mockstate) GetLayerApplied ¶
func (m *Mockstate) GetLayerApplied(arg0 types.TransactionID) *types.LayerID
GetLayerApplied mocks base method.
func (*Mockstate) GetLayerStateRoot ¶
GetLayerStateRoot mocks base method.
func (*Mockstate) GetStateRoot ¶
GetStateRoot mocks base method.
func (*Mockstate) ValidateNonceAndBalance ¶
func (m *Mockstate) ValidateNonceAndBalance(arg0 *types.Transaction) error
ValidateNonceAndBalance mocks base method.
type MockstateMockRecorder ¶
type MockstateMockRecorder struct {
// contains filtered or unexported fields
}
MockstateMockRecorder is the mock recorder for Mockstate.
func (*MockstateMockRecorder) AddTxToPool ¶
func (mr *MockstateMockRecorder) AddTxToPool(tx interface{}) *gomock.Call
AddTxToPool indicates an expected call of AddTxToPool.
func (*MockstateMockRecorder) AddressExists ¶
func (mr *MockstateMockRecorder) AddressExists(arg0 interface{}) *gomock.Call
AddressExists indicates an expected call of AddressExists.
func (*MockstateMockRecorder) ApplyLayer ¶
func (mr *MockstateMockRecorder) ApplyLayer(layer, txs, rewards interface{}) *gomock.Call
ApplyLayer indicates an expected call of ApplyLayer.
func (*MockstateMockRecorder) GetAllAccounts ¶
func (mr *MockstateMockRecorder) GetAllAccounts() *gomock.Call
GetAllAccounts indicates an expected call of GetAllAccounts.
func (*MockstateMockRecorder) GetBalance ¶
func (mr *MockstateMockRecorder) GetBalance(arg0 interface{}) *gomock.Call
GetBalance indicates an expected call of GetBalance.
func (*MockstateMockRecorder) GetLayerApplied ¶
func (mr *MockstateMockRecorder) GetLayerApplied(arg0 interface{}) *gomock.Call
GetLayerApplied indicates an expected call of GetLayerApplied.
func (*MockstateMockRecorder) GetLayerStateRoot ¶
func (mr *MockstateMockRecorder) GetLayerStateRoot(arg0 interface{}) *gomock.Call
GetLayerStateRoot indicates an expected call of GetLayerStateRoot.
func (*MockstateMockRecorder) GetNonce ¶
func (mr *MockstateMockRecorder) GetNonce(arg0 interface{}) *gomock.Call
GetNonce indicates an expected call of GetNonce.
func (*MockstateMockRecorder) GetStateRoot ¶
func (mr *MockstateMockRecorder) GetStateRoot() *gomock.Call
GetStateRoot indicates an expected call of GetStateRoot.
func (*MockstateMockRecorder) Rewind ¶
func (mr *MockstateMockRecorder) Rewind(layer interface{}) *gomock.Call
Rewind indicates an expected call of Rewind.
func (*MockstateMockRecorder) ValidateNonceAndBalance ¶
func (mr *MockstateMockRecorder) ValidateNonceAndBalance(arg0 interface{}) *gomock.Call
ValidateNonceAndBalance indicates an expected call of ValidateNonceAndBalance.
type Mocktortoise ¶
type Mocktortoise struct {
// contains filtered or unexported fields
}
Mocktortoise is a mock of tortoise interface.
func NewMocktortoise ¶
func NewMocktortoise(ctrl *gomock.Controller) *Mocktortoise
NewMocktortoise creates a new mock instance.
func (*Mocktortoise) EXPECT ¶
func (m *Mocktortoise) EXPECT() *MocktortoiseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MocktortoiseMockRecorder ¶
type MocktortoiseMockRecorder struct {
// contains filtered or unexported fields
}
MocktortoiseMockRecorder is the mock recorder for Mocktortoise.
func (*MocktortoiseMockRecorder) HandleIncomingLayer ¶
func (mr *MocktortoiseMockRecorder) HandleIncomingLayer(arg0, arg1 interface{}) *gomock.Call
HandleIncomingLayer indicates an expected call of HandleIncomingLayer.