Files
node/vms/platformvm/txs/mock_scheduled_staker.go
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

158 lines
4.9 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/luxfi/node/vms/platformvm/txs (interfaces: ScheduledStaker)
//
// Generated by this command:
//
// mockgen -package=txs -destination=mock_scheduled_staker.go . ScheduledStaker
//
// Package txs is a generated GoMock package.
package txs
import (
reflect "reflect"
time "time"
bls "github.com/luxfi/crypto/bls"
ids "github.com/luxfi/ids"
gomock "go.uber.org/mock/gomock"
)
// MockScheduledStaker is a mock of ScheduledStaker interface.
type MockScheduledStaker struct {
ctrl *gomock.Controller
recorder *MockScheduledStakerMockRecorder
isgomock struct{}
}
// MockScheduledStakerMockRecorder is the mock recorder for MockScheduledStaker.
type MockScheduledStakerMockRecorder struct {
mock *MockScheduledStaker
}
// NewMockScheduledStaker creates a new mock instance.
func NewMockScheduledStaker(ctrl *gomock.Controller) *MockScheduledStaker {
mock := &MockScheduledStaker{ctrl: ctrl}
mock.recorder = &MockScheduledStakerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockScheduledStaker) EXPECT() *MockScheduledStakerMockRecorder {
return m.recorder
}
// ChainID mocks base method.
func (m *MockScheduledStaker) ChainID() ids.ID {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ChainID")
ret0, _ := ret[0].(ids.ID)
return ret0
}
// ChainID indicates an expected call of ChainID.
func (mr *MockScheduledStakerMockRecorder) ChainID() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChainID", reflect.TypeOf((*MockScheduledStaker)(nil).ChainID))
}
// CurrentPriority mocks base method.
func (m *MockScheduledStaker) CurrentPriority() Priority {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CurrentPriority")
ret0, _ := ret[0].(Priority)
return ret0
}
// CurrentPriority indicates an expected call of CurrentPriority.
func (mr *MockScheduledStakerMockRecorder) CurrentPriority() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CurrentPriority", reflect.TypeOf((*MockScheduledStaker)(nil).CurrentPriority))
}
// EndTime mocks base method.
func (m *MockScheduledStaker) EndTime() time.Time {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EndTime")
ret0, _ := ret[0].(time.Time)
return ret0
}
// EndTime indicates an expected call of EndTime.
func (mr *MockScheduledStakerMockRecorder) EndTime() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EndTime", reflect.TypeOf((*MockScheduledStaker)(nil).EndTime))
}
// NodeID mocks base method.
func (m *MockScheduledStaker) NodeID() ids.NodeID {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NodeID")
ret0, _ := ret[0].(ids.NodeID)
return ret0
}
// NodeID indicates an expected call of NodeID.
func (mr *MockScheduledStakerMockRecorder) NodeID() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeID", reflect.TypeOf((*MockScheduledStaker)(nil).NodeID))
}
// PendingPriority mocks base method.
func (m *MockScheduledStaker) PendingPriority() Priority {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PendingPriority")
ret0, _ := ret[0].(Priority)
return ret0
}
// PendingPriority indicates an expected call of PendingPriority.
func (mr *MockScheduledStakerMockRecorder) PendingPriority() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PendingPriority", reflect.TypeOf((*MockScheduledStaker)(nil).PendingPriority))
}
// PublicKey mocks base method.
func (m *MockScheduledStaker) PublicKey() (*bls.PublicKey, bool, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PublicKey")
ret0, _ := ret[0].(*bls.PublicKey)
ret1, _ := ret[1].(bool)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// PublicKey indicates an expected call of PublicKey.
func (mr *MockScheduledStakerMockRecorder) PublicKey() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PublicKey", reflect.TypeOf((*MockScheduledStaker)(nil).PublicKey))
}
// StartTime mocks base method.
func (m *MockScheduledStaker) StartTime() time.Time {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "StartTime")
ret0, _ := ret[0].(time.Time)
return ret0
}
// StartTime indicates an expected call of StartTime.
func (mr *MockScheduledStakerMockRecorder) StartTime() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartTime", reflect.TypeOf((*MockScheduledStaker)(nil).StartTime))
}
// Weight mocks base method.
func (m *MockScheduledStaker) Weight() uint64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Weight")
ret0, _ := ret[0].(uint64)
return ret0
}
// Weight indicates an expected call of Weight.
func (mr *MockScheduledStakerMockRecorder) Weight() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Weight", reflect.TypeOf((*MockScheduledStaker)(nil).Weight))
}