1- [ ![ PDD status] ( https://www.0pdd.com/svg?name=mlabs-haskell/cem-script )] ( https://www.0pdd.com/p?name=mlabs-haskell/cem-script )
2-
31# CEM SDK
42
5- * @todo #3 Take decision if to change project name to CEM SDK
6- * @todo #3 Found out if we can make PDD bot descriptions and mentions less noisy
7-
83## Project pitch
94
105Define and reuse Cardano DApp logic via annotated CEM-machines, resulting in free implementations for:
@@ -15,6 +10,48 @@ Define and reuse Cardano DApp logic via annotated CEM-machines, resulting in fre
1510* Automatically testing invariants
1611* Human-readable specs
1712
13+ ## Building
14+
15+ Building is performed with cabal.
16+ Building requires ` libblst ` and ` libsodium ` installed.
17+
18+ Arch Linux has ` libblst ` in AUR, nix are exemplified by IOHK,
19+ and manual installation is described here:
20+ https://github.com/input-output-hk/cardano-node-wiki/blob/main/docs/getting-started/install.md#installing-blst
21+
22+ Make sure to ` cabal update ` before building.
23+
24+ The project uses ` github:input-output-hk/devx ` to make the development shell. See ` .envrc ` for details.
25+
26+ ## Running tests
27+
28+ Tests are runned in emulated environment by default.
29+
30+ Just run: ` cabal test ` .
31+
32+ For development and fast response once could consider ` ghcid ` .
33+
34+ ## Starting local devnet
35+
36+ Tests depend on localdevnet, which is runned in Docker.
37+ To start it do:
38+
39+ ``` bash
40+ ./prepare-devnet.sh
41+ docker-compose -f docker-compose.devnet.yaml up
42+ sudo chown -R $USER :$USER ./devnet/
43+ ```
44+
45+ ## Devnet stalling bug
46+
47+ Sometimes devnet stalls, due to some bug, in that case one should restart it,
48+ and wipe directory ` ./devnet/db ` . To look for stalling one could check:
49+ ` CARDANO_NODE_SOCKET_PATH=./devnet/node.socket cardano-cli query tip --testnet-magic 42 ` . For properly working devnet slots should change
50+ and sync be marked as 100%.
51+
52+ On this bug:
53+ https://forum.cardano.org/t/restarting-custom-private-networks-cardano-node-forge35/116921
54+
1855## Project status
1956
2057Project is in early development stage and is funded by
0 commit comments