Files
zeekay 7cf87b230b node-unified is the node
The module already called itself github.com/luxfi/node while containing no node
in Go: cmd/luxd was twenty-one lines that printed the size of a few types, and
the Go column of the matrix measured a VM plugin. A repo that fetches the thing
it claims to be has not replaced it, so the Go sources move in — 1515 files,
the daemon and everything under it — and the build reaches outside this module
for nothing.

Rust and C++ sit beside it unchanged and are still measured against it by the
differential. That is the point of one repo: the reference implementation and
the two ports are the same checkout, so parity is a thing you can run rather
than a thing you assert.

Verified: builds, and the closure carries no lux-private — checked at build time
rather than believed. The daemon starts twelve chains on a local network
(P X C Q Z A B G K M F, plus D through its plugin) and reports healthy.
2026-09-07 16:15:25 -07:00

215 lines
6.9 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/luxfi/node/vms/proposervm/state (interfaces: State)
//
// Generated by this command:
//
// mockgen -package=statemock -destination=vms/proposervm/state/statemock/state.go -mock_names=State=State github.com/luxfi/node/vms/proposervm/state State
//
// Package statemock is a generated GoMock package.
package statemock
import (
reflect "reflect"
ids "github.com/luxfi/ids"
block "github.com/luxfi/node/vms/proposervm/block"
gomock "go.uber.org/mock/gomock"
)
// State is a mock of State interface.
type State struct {
ctrl *gomock.Controller
recorder *StateMockRecorder
}
// StateMockRecorder is the mock recorder for State.
type StateMockRecorder struct {
mock *State
}
// NewState creates a new mock instance.
func NewState(ctrl *gomock.Controller) *State {
mock := &State{ctrl: ctrl}
mock.recorder = &StateMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *State) EXPECT() *StateMockRecorder {
return m.recorder
}
// DeleteBlock mocks base method.
func (m *State) DeleteBlock(arg0 ids.ID) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteBlock", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteBlock indicates an expected call of DeleteBlock.
func (mr *StateMockRecorder) DeleteBlock(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBlock", reflect.TypeOf((*State)(nil).DeleteBlock), arg0)
}
// DeleteBlockIDAtHeight mocks base method.
func (m *State) DeleteBlockIDAtHeight(arg0 uint64) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteBlockIDAtHeight", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteBlockIDAtHeight indicates an expected call of DeleteBlockIDAtHeight.
func (mr *StateMockRecorder) DeleteBlockIDAtHeight(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBlockIDAtHeight", reflect.TypeOf((*State)(nil).DeleteBlockIDAtHeight), arg0)
}
// DeleteLastAccepted mocks base method.
func (m *State) DeleteLastAccepted() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteLastAccepted")
ret0, _ := ret[0].(error)
return ret0
}
// DeleteLastAccepted indicates an expected call of DeleteLastAccepted.
func (mr *StateMockRecorder) DeleteLastAccepted() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLastAccepted", reflect.TypeOf((*State)(nil).DeleteLastAccepted))
}
// GetBlock mocks base method.
func (m *State) GetBlock(arg0 ids.ID) (block.Block, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBlock", arg0)
ret0, _ := ret[0].(block.Block)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetBlock indicates an expected call of GetBlock.
func (mr *StateMockRecorder) GetBlock(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlock", reflect.TypeOf((*State)(nil).GetBlock), arg0)
}
// GetBlockIDAtHeight mocks base method.
func (m *State) GetBlockIDAtHeight(arg0 uint64) (ids.ID, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBlockIDAtHeight", arg0)
ret0, _ := ret[0].(ids.ID)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetBlockIDAtHeight indicates an expected call of GetBlockIDAtHeight.
func (mr *StateMockRecorder) GetBlockIDAtHeight(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlockIDAtHeight", reflect.TypeOf((*State)(nil).GetBlockIDAtHeight), arg0)
}
// GetForkHeight mocks base method.
func (m *State) GetForkHeight() (uint64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetForkHeight")
ret0, _ := ret[0].(uint64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetForkHeight indicates an expected call of GetForkHeight.
func (mr *StateMockRecorder) GetForkHeight() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetForkHeight", reflect.TypeOf((*State)(nil).GetForkHeight))
}
// GetLastAccepted mocks base method.
func (m *State) GetLastAccepted() (ids.ID, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetLastAccepted")
ret0, _ := ret[0].(ids.ID)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetLastAccepted indicates an expected call of GetLastAccepted.
func (mr *StateMockRecorder) GetLastAccepted() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLastAccepted", reflect.TypeOf((*State)(nil).GetLastAccepted))
}
// GetMinimumHeight mocks base method.
func (m *State) GetMinimumHeight() (uint64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetMinimumHeight")
ret0, _ := ret[0].(uint64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetMinimumHeight indicates an expected call of GetMinimumHeight.
func (mr *StateMockRecorder) GetMinimumHeight() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMinimumHeight", reflect.TypeOf((*State)(nil).GetMinimumHeight))
}
// PutBlock mocks base method.
func (m *State) PutBlock(arg0 block.Block) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PutBlock", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// PutBlock indicates an expected call of PutBlock.
func (mr *StateMockRecorder) PutBlock(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutBlock", reflect.TypeOf((*State)(nil).PutBlock), arg0)
}
// SetBlockIDAtHeight mocks base method.
func (m *State) SetBlockIDAtHeight(arg0 uint64, arg1 ids.ID) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetBlockIDAtHeight", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// SetBlockIDAtHeight indicates an expected call of SetBlockIDAtHeight.
func (mr *StateMockRecorder) SetBlockIDAtHeight(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBlockIDAtHeight", reflect.TypeOf((*State)(nil).SetBlockIDAtHeight), arg0, arg1)
}
// SetForkHeight mocks base method.
func (m *State) SetForkHeight(arg0 uint64) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetForkHeight", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// SetForkHeight indicates an expected call of SetForkHeight.
func (mr *StateMockRecorder) SetForkHeight(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetForkHeight", reflect.TypeOf((*State)(nil).SetForkHeight), arg0)
}
// SetLastAccepted mocks base method.
func (m *State) SetLastAccepted(arg0 ids.ID) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetLastAccepted", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// SetLastAccepted indicates an expected call of SetLastAccepted.
func (mr *StateMockRecorder) SetLastAccepted(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLastAccepted", reflect.TypeOf((*State)(nil).SetLastAccepted), arg0)
}