mirror of
https://github.com/luxfi/node.git
synced 2026-07-27 03:39:39 +00:00
X-Chain fully off pcodecs (the last node consumer). kind.go (xkind 1-5), tx.go
(wire.SignedTx envelope), parser (reflect-map + dual LinearCodec DELETED, fx
dispatch by envelope TypeKind/ShapeKind), base/create_asset/operation/import/
export tx, initial_state, operation, block/{standard,parser,builder}, genesis
(native genesis_wire.go: marshalGenesis/parseGenesis + txs.ParseUnsignedTx),
vm/service/static_service/wallet_service/utxo-spender, metrics (pcodecs.Errs ->
errors.Join). ALL xvm test codec threading removed; xvm tests green.
Block-build invariant: writeTxList requires Initialized txs (mempool/parse hand
the builder canonical bytes) — errors on empty tx-bytes rather than a hidden
Initialize side-effect; state_test updated to Initialize its fixtures.
Transport foundation: rpcchainvm NewListener unix-socket fast path gated
LUXD_VM_UNIX_SOCKET=1 (default TCP, non-breaking; api/zap 159b27a infers unix
from socket-path addr). Consumes upstream utxo TransferableOut/In (4ce6a6e).
ZERO real node-side pcodecs consumers remain. vms/pcodecs kept only for 3
external luxfi/chains VMs (Wave B: zkvm/bridgevm/mpcvm) pending their migration.
Co-authored-by: Hanzo Dev <dev@hanzo.ai>
142 lines
3.8 KiB
Go
142 lines
3.8 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/luxfi/node/vms/xvm/block (interfaces: Block)
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -package=block -destination=mock_block.go . Block
|
|
//
|
|
|
|
// Package block is a generated GoMock package.
|
|
package block
|
|
|
|
import (
|
|
reflect "reflect"
|
|
time "time"
|
|
|
|
ids "github.com/luxfi/ids"
|
|
txs "github.com/luxfi/node/vms/xvm/txs"
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockBlock is a mock of Block interface.
|
|
type MockBlock struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockBlockMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockBlockMockRecorder is the mock recorder for MockBlock.
|
|
type MockBlockMockRecorder struct {
|
|
mock *MockBlock
|
|
}
|
|
|
|
// NewMockBlock creates a new mock instance.
|
|
func NewMockBlock(ctrl *gomock.Controller) *MockBlock {
|
|
mock := &MockBlock{ctrl: ctrl}
|
|
mock.recorder = &MockBlockMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockBlock) EXPECT() *MockBlockMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Bytes mocks base method.
|
|
func (m *MockBlock) 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 *MockBlockMockRecorder) Bytes() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bytes", reflect.TypeOf((*MockBlock)(nil).Bytes))
|
|
}
|
|
|
|
// Height mocks base method.
|
|
func (m *MockBlock) Height() uint64 {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Height")
|
|
ret0, _ := ret[0].(uint64)
|
|
return ret0
|
|
}
|
|
|
|
// Height indicates an expected call of Height.
|
|
func (mr *MockBlockMockRecorder) Height() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Height", reflect.TypeOf((*MockBlock)(nil).Height))
|
|
}
|
|
|
|
// ID mocks base method.
|
|
func (m *MockBlock) ID() ids.ID {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ID")
|
|
ret0, _ := ret[0].(ids.ID)
|
|
return ret0
|
|
}
|
|
|
|
// ID indicates an expected call of ID.
|
|
func (mr *MockBlockMockRecorder) ID() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ID", reflect.TypeOf((*MockBlock)(nil).ID))
|
|
}
|
|
|
|
// MerkleRoot mocks base method.
|
|
func (m *MockBlock) MerkleRoot() ids.ID {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "MerkleRoot")
|
|
ret0, _ := ret[0].(ids.ID)
|
|
return ret0
|
|
}
|
|
|
|
// MerkleRoot indicates an expected call of MerkleRoot.
|
|
func (mr *MockBlockMockRecorder) MerkleRoot() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MerkleRoot", reflect.TypeOf((*MockBlock)(nil).MerkleRoot))
|
|
}
|
|
|
|
// Parent mocks base method.
|
|
func (m *MockBlock) Parent() ids.ID {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Parent")
|
|
ret0, _ := ret[0].(ids.ID)
|
|
return ret0
|
|
}
|
|
|
|
// Parent indicates an expected call of Parent.
|
|
func (mr *MockBlockMockRecorder) Parent() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Parent", reflect.TypeOf((*MockBlock)(nil).Parent))
|
|
}
|
|
|
|
// Timestamp mocks base method.
|
|
func (m *MockBlock) Timestamp() time.Time {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Timestamp")
|
|
ret0, _ := ret[0].(time.Time)
|
|
return ret0
|
|
}
|
|
|
|
// Timestamp indicates an expected call of Timestamp.
|
|
func (mr *MockBlockMockRecorder) Timestamp() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Timestamp", reflect.TypeOf((*MockBlock)(nil).Timestamp))
|
|
}
|
|
|
|
// Txs mocks base method.
|
|
func (m *MockBlock) Txs() []*txs.Tx {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Txs")
|
|
ret0, _ := ret[0].([]*txs.Tx)
|
|
return ret0
|
|
}
|
|
|
|
// Txs indicates an expected call of Txs.
|
|
func (mr *MockBlockMockRecorder) Txs() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Txs", reflect.TypeOf((*MockBlock)(nil).Txs))
|
|
}
|