⛓️Prepare for On-Chain Development
Complete this preparation before following Custom TAP Package Development or Build an On-Chain Tool. Use the Move Registry records for consumer installation, then commit the resolved Move.lock and verify every resolved package ID against the network where the package will run.
Package installation and source references
@talus/nexus-primitives; nexus_primitives = { r.mvr = "@talus/nexus-primitives" }
@talus/nexus-interface; nexus_interface = { r.mvr = "@talus/nexus-interface" }
@talus/nexus-registry; nexus_registry = { r.mvr = "@talus/nexus-registry" }
@talus/nexus-workflow; nexus_workflow = { r.mvr = "@talus/nexus-workflow" }
@talus/nexus-scheduler; nexus_scheduler = { r.mvr = "@talus/nexus-scheduler" }
Use the Move Registry record as the installation authority. Use the public main source directories only for inspection and provenance. Do not create direct dependencies for nexus-policy or nexus-kernel: neither has a Move Registry record, and any required support package belongs to the resolved transitive closure.
Local Move tests with module extensions
The Nexus Move dependencies are public interface stubs for compiling against packages published on Sui. Their types and public signatures match the supported consumer surface, but their local function bodies deliberately abort with ELocalExecutionUnavailable. A Testnet build environment selects Testnet dependencies; it does not make the local Move test VM call Testnet.
Use three layers of evidence:
sui move build --build-env testnet
The application compiles against the Testnet interfaces and dependency graph.
That a transaction succeeds or that selected shared objects are valid.
sui move test --build-env testnet
Application-owned logic works with Nexus value shapes supplied by test-only module extensions, and expected stub calls abort.
Published Nexus validation, authorization, events, payments, scheduling, shared-object behavior, or state transitions.
Testnet integration transaction
The published Nexus packages accept the transaction and produce the expected effects, events, and object state.
Mainnet configuration unless it is verified separately.
Enable module extensions only when tests need them
A test-only module extension shares the private scope of the Nexus module it extends. It can add a minimal constructor or observation for a private Nexus value shape without adding a production helper or pretending to implement Nexus behavior. Module extensions require the alpha form of Move 2024, so use it only in a package whose tests contain extensions:
Put each extension under the consumer package's tests/ directory. For example, tests/data_extension.move can construct and inspect the private NexusData shape needed by an application test:
Call each helper through the module it extends. Keep _for_testing in helper names and add only the constructors or observations required by the application test:
Extensions are additive: they cannot replace an existing Nexus function and do not reproduce its validation, authorization, events, or state changes. A #[test_only] extension under tests/ is excluded from production bytecode. Keep code that invokes Nexus behind a small application boundary, test decisions and transformations on your side of that boundary, and use an expected-failure test when you want to prove that a local test does not cross it:
Run the suite with the same build environment used for dependency resolution:
Use a real Testnet transaction for anything that calls a Nexus constructor, validator, adapter, or entry function; checks authorization or capability rules; emits or consumes Nexus events; uses shared protocol objects; or executes, schedules, charges, verifies, or settles work. Require successful transaction effects, assert the expected events, and read back affected objects.
Local published-bytecode TAP tests
The released 2.1.1 nexus tap test command can read published Nexus bytecode for Testnet or Mainnet and runs your local test extensions in a Sui VM; it does not use a wallet, signer, gas, publication, registration, binding, scheduling, settlement, or asset movement.
List available tests first when diagnosing a package, run one named case to isolate the earliest concrete failure, then rerun the complete package suite without a name filter:
The released CLI/SDK references below remain authoritative for release installation and network operations. A local VM run proves only the exercised published calls and local test extensions; it does not prove package publication, Tool registration, skill binding, scheduling, live execution, payment, or settlement.
Completion check
Before continuing, confirm that the manifest uses only the required r.mvr dependencies, Move.lock is committed, and the selected network resolves each direct package to the expected package ID. If local tests use module extensions, confirm that the package uses edition = "2024.alpha", extensions are #[test_only] files under tests/, and assertions about published Nexus behavior are assigned to Testnet integration transactions. If any record or package ID is unavailable or mismatched, stop before building or signing.
Last updated

