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

127 lines
3.7 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/luxfi/node/vms/xvm/txs (interfaces: UnsignedTx)
//
// Generated by this command:
//
// mockgen -package=txsmock -destination=txsmock/tx.go -mock_names=UnsignedTx=UnsignedTx . UnsignedTx
//
// Package txsmock is a generated GoMock package.
package txsmock
import (
reflect "reflect"
ids "github.com/luxfi/ids"
set "github.com/luxfi/math/set"
txs "github.com/luxfi/node/vms/xvm/txs"
utxo "github.com/luxfi/utxo"
gomock "go.uber.org/mock/gomock"
)
// UnsignedTx is a mock of UnsignedTx interface.
type UnsignedTx struct {
ctrl *gomock.Controller
recorder *UnsignedTxMockRecorder
isgomock struct{}
}
// UnsignedTxMockRecorder is the mock recorder for UnsignedTx.
type UnsignedTxMockRecorder struct {
mock *UnsignedTx
}
// NewUnsignedTx creates a new mock instance.
func NewUnsignedTx(ctrl *gomock.Controller) *UnsignedTx {
mock := &UnsignedTx{ctrl: ctrl}
mock.recorder = &UnsignedTxMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *UnsignedTx) EXPECT() *UnsignedTxMockRecorder {
return m.recorder
}
// Bytes mocks base method.
func (m *UnsignedTx) Bytes() []byte {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Bytes")
ret0, _ := ret[0].([]byte)
return ret0
}
// Bytes indicates an expected call of Bytes.
func (mr *UnsignedTxMockRecorder) Bytes() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bytes", reflect.TypeOf((*UnsignedTx)(nil).Bytes))
}
// InputIDs mocks base method.
func (m *UnsignedTx) InputIDs() set.Set[ids.ID] {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InputIDs")
ret0, _ := ret[0].(set.Set[ids.ID])
return ret0
}
// InputIDs indicates an expected call of InputIDs.
func (mr *UnsignedTxMockRecorder) InputIDs() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InputIDs", reflect.TypeOf((*UnsignedTx)(nil).InputIDs))
}
// InputUTXOs mocks base method.
func (m *UnsignedTx) InputUTXOs() []*utxo.UTXOID {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InputUTXOs")
ret0, _ := ret[0].([]*utxo.UTXOID)
return ret0
}
// InputUTXOs indicates an expected call of InputUTXOs.
func (mr *UnsignedTxMockRecorder) InputUTXOs() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InputUTXOs", reflect.TypeOf((*UnsignedTx)(nil).InputUTXOs))
}
// NumCredentials mocks base method.
func (m *UnsignedTx) NumCredentials() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NumCredentials")
ret0, _ := ret[0].(int)
return ret0
}
// NumCredentials indicates an expected call of NumCredentials.
func (mr *UnsignedTxMockRecorder) NumCredentials() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NumCredentials", reflect.TypeOf((*UnsignedTx)(nil).NumCredentials))
}
// SetBytes mocks base method.
func (m *UnsignedTx) SetBytes(unsignedBytes []byte) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetBytes", unsignedBytes)
}
// SetBytes indicates an expected call of SetBytes.
func (mr *UnsignedTxMockRecorder) SetBytes(unsignedBytes any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBytes", reflect.TypeOf((*UnsignedTx)(nil).SetBytes), unsignedBytes)
}
// Visit mocks base method.
func (m *UnsignedTx) Visit(visitor txs.Visitor) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Visit", visitor)
ret0, _ := ret[0].(error)
return ret0
}
// Visit indicates an expected call of Visit.
func (mr *UnsignedTxMockRecorder) Visit(visitor any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Visit", reflect.TypeOf((*UnsignedTx)(nil).Visit), visitor)
}