add Debug stringify function service (#22)

This commit is contained in:
Dima 2022-02-28 12:17:26 +03:00 committed by GitHub
parent c64babf199
commit 7e157fbd75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 6 deletions

View File

@ -28,7 +28,7 @@ jobs:
node-version: 14
- name: Install aqua compiler
run: npm install -g @fluencelabs/aqua-cli
run: npm install -g @fluencelabs/aqua
- name: Check compilation
run: aqua-cli -i . -o /tmp
run: aqua -i . -o /tmp

View File

@ -33,10 +33,10 @@ jobs:
node-version: 14
- name: Install aqua compiler
run: npm install -g @fluencelabs/aqua-cli
run: npm install -g @fluencelabs/aqua
- name: Check compilation
run: aqua-cli -i . -o /tmp
run: aqua -i . -o /tmp
### Publish to NPM registry
- uses: actions/setup-node@v1

View File

@ -284,3 +284,8 @@ service Sig("sig"):
-- Gets service's public key.
get_pub_key() -> string
-- Service for debugging purposes only
service Debug("debug"):
-- Convert any object into a string
stringify(o: ) -> string

View File

@ -1,6 +1,6 @@
{
"name": "@fluencelabs/aqua-lib",
"version": "0.1.0",
"version": "0.1.1",
"description": "Aqua standard library",
"files": [
"builtin.aqua"

View File

@ -20,7 +20,7 @@ See [Aqua Book](https://fluence.dev/aqua-book/libraries/aqua-dht).
Add `@fluencelabs/aqua-lib` to your package.json dependencies, and then in your Aqua script, import and use it:
```haskell
import "@fluencelabs/aqua-lib"
import "@fluencelabs/aqua-lib/builtin.aqua"
-- gather Peer.identify from all nodes in the neighbourhood
func getPeersInfo() -> []Info: