mirror of
https://github.com/luxfi/node.git
synced 2026-07-27 03:39:39 +00:00
vms.go drops the dexvm import+entry, calls appendDChainVM; vms_dchain.go (//go:build dchain) links it, vms_nodchain.go (//go:build !dchain) no-ops; vms/dexvm alias gated //go:build dchain + doc_nodchain.go placeholder. Genesis-gate (constants.DexVMID, no pkg dep) retained. VERIFIED: public 'go list -deps ./node/' has ZERO chains/dexvm|luxfi/dex|gpu-kernels|luxcpp; -tags dchain brings them in. Both builds green. Consensus change -- held for human review before merge/push (bundles with merkle-activation).
42 lines
1.3 KiB
Go
42 lines
1.3 KiB
Go
// Copyright (C) 2019-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
//go:build dchain
|
|
|
|
// Package dexvm re-exports the canonical DEX VM from
|
|
// github.com/luxfi/chains/dexvm so existing callers that imported
|
|
// github.com/luxfi/node/vms/dexvm pre-extraction keep working
|
|
// without source-level changes.
|
|
//
|
|
// New code should import the canonical path:
|
|
// "github.com/luxfi/chains/dexvm"
|
|
//
|
|
// This package is a thin alias wrapper kept for backward compatibility. It is
|
|
// gated behind the `dchain` build tag: it imports github.com/luxfi/chains/dexvm
|
|
// (the D-Chain proxy tree), which MUST be absent from the public OSS luxd build
|
|
// (public-build purity). Nothing in-tree imports this alias; it exists only for
|
|
// out-of-tree backward compatibility, and only a venue (dchain) build links it.
|
|
package dexvm
|
|
|
|
import (
|
|
"github.com/luxfi/chains/dexvm"
|
|
)
|
|
|
|
// Re-export the public surface.
|
|
type (
|
|
Block = dexvm.Block
|
|
ChainVM = dexvm.ChainVM
|
|
Factory = dexvm.Factory
|
|
OrderKey = dexvm.OrderKey
|
|
DexVertex = dexvm.DexVertex
|
|
Status = dexvm.Status
|
|
)
|
|
|
|
var (
|
|
// VMID identifies the canonical primary-network D-Chain VM.
|
|
VMID = dexvm.VMID
|
|
|
|
// NewChainVM constructs a fresh DEX chain VM.
|
|
NewChainVM = dexvm.NewChainVM
|
|
)
|