Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
Added more text describing how to compile and deploy.
Browse files Browse the repository at this point in the history
  • Loading branch information
dc-andysign committed Nov 23, 2023
1 parent b694ffd commit 11507c9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions prototyping/dscp-lang-flows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,18 @@ DSCP is a _domain-specific-language_ ( DSL ) for designing **[token process flow

The **`dscp-lang`**, tool we use for parsing token flows, can be found in the **[dscp-node](https://github.com/digicatapult/dscp-node)** repository.

To differentiate documents with code that has a high-level of abstraction from other things, let's consider using the custom file extension **`*.dscp`**.

To compile the final _token flow json_ using the _token dscp code_ as an input the **[dscp-lang](https://github.com/digicatapult/dscp-node/tree/main/tools/lang)** needs to be used, therefore a command like the following:

```sh
dscp-lang -- build -v ./hyproof-token-flows.dscp -o hyproof-token-flows.json
```

To create, as in, deploy the new token flows ( described in the json ) into the node's _processValidation_ set, something like the following can be used ( make sure the chain is running first ):

```sh
process-management create -h localhost -p 9944 -u //Alice -f hyproof-token-flows.json # OR 127.0.0.1
```

---

0 comments on commit 11507c9

Please sign in to comment.