mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
* Limit state sync by gas * Added logging for state-sync total gas usage * Added number of event-records in log * Minor Changes * Minor Fix * Adding individual gasUsed * Minor Fix * it works * fix tests * log wiggle and delay with block number * log delays as numbers * linters * fix tests * restore linters for the project * fix linters * fix * fix * fix * linters * generation * fix tests * remove heimdall wrapper response * linters * remove possible collisions * remove possible collisions * remove possible collisions * tests for unique address generation * generalize set * bor miner tests got restored * fixes after CR * final step and mining test * fix * fix e2e * more tests for Heimdall requests * fix linters Co-authored-by: Ferran <ferranbt@protonmail.com> Co-authored-by: Shivam Sharma <shivam691999@gmail.com>
69 lines
2.5 KiB
Go
69 lines
2.5 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/ethereum/go-ethereum/consensus/bor (interfaces: GenesisContract)
|
|
|
|
// Package bor is a generated GoMock package.
|
|
package bor
|
|
|
|
import (
|
|
big "math/big"
|
|
reflect "reflect"
|
|
|
|
clerk "github.com/ethereum/go-ethereum/consensus/bor/clerk"
|
|
statefull "github.com/ethereum/go-ethereum/consensus/bor/statefull"
|
|
state "github.com/ethereum/go-ethereum/core/state"
|
|
types "github.com/ethereum/go-ethereum/core/types"
|
|
gomock "github.com/golang/mock/gomock"
|
|
)
|
|
|
|
// MockGenesisContract is a mock of GenesisContract interface.
|
|
type MockGenesisContract struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockGenesisContractMockRecorder
|
|
}
|
|
|
|
// MockGenesisContractMockRecorder is the mock recorder for MockGenesisContract.
|
|
type MockGenesisContractMockRecorder struct {
|
|
mock *MockGenesisContract
|
|
}
|
|
|
|
// NewMockGenesisContract creates a new mock instance.
|
|
func NewMockGenesisContract(ctrl *gomock.Controller) *MockGenesisContract {
|
|
mock := &MockGenesisContract{ctrl: ctrl}
|
|
mock.recorder = &MockGenesisContractMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockGenesisContract) EXPECT() *MockGenesisContractMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// CommitState mocks base method.
|
|
func (m *MockGenesisContract) CommitState(arg0 *clerk.EventRecordWithTime, arg1 *state.StateDB, arg2 *types.Header, arg3 statefull.ChainContext) (uint64, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "CommitState", arg0, arg1, arg2, arg3)
|
|
ret0, _ := ret[0].(uint64)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// CommitState indicates an expected call of CommitState.
|
|
func (mr *MockGenesisContractMockRecorder) CommitState(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommitState", reflect.TypeOf((*MockGenesisContract)(nil).CommitState), arg0, arg1, arg2, arg3)
|
|
}
|
|
|
|
// LastStateId mocks base method.
|
|
func (m *MockGenesisContract) LastStateId(arg0 uint64) (*big.Int, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "LastStateId", arg0)
|
|
ret0, _ := ret[0].(*big.Int)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// LastStateId indicates an expected call of LastStateId.
|
|
func (mr *MockGenesisContractMockRecorder) LastStateId(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LastStateId", reflect.TypeOf((*MockGenesisContract)(nil).LastStateId), arg0)
|
|
}
|