mirror of
https://github.com/fluencelabs/aqua-lib
synced 2024-12-04 15:20:23 +00:00
add Debug stringify
function service (#22)
This commit is contained in:
parent
c64babf199
commit
7e157fbd75
4
.github/workflows/check.yml
vendored
4
.github/workflows/check.yml
vendored
@ -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
|
||||
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@fluencelabs/aqua-lib",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"description": "Aqua standard library",
|
||||
"files": [
|
||||
"builtin.aqua"
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user