697 B
697 B
u-js-sample
A minimal network and custom-token sample using universa-core2@2.0.0-alpha.1.
Initialize and test
npm ci
scripts/test-network.sh
The test:
- Loads
src/universa.jsonand the network-specific whitelisted client key. - Initializes
Network, connects, and asserts that it returnssping=spong. - Creates and signs a simple
SAMPLEtoken contract with split/join and change-owner permissions. - Packs the contract into a
TransactionPack, registers it without a fee, and asserts that its final network state isAPPROVED.
The bundled client key is intended only for this test network. The alpha package intentionally has no bundled default topology.