mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-03-14 21:00:56 +00:00
Cleanup befor moving to Aqua repo (#92)
This commit is contained in:
parent
d9f42dd7ef
commit
a7d7cd5c4f
@ -4,8 +4,6 @@ Repository demonstrating the how to start writing aqua and integrate it into a t
|
||||
|
||||
## Getting started
|
||||
|
||||
**Warning: java is required to be installed in order to use aqua compiler**
|
||||
|
||||
Install dependencies
|
||||
|
||||
```
|
||||
@ -45,4 +43,4 @@ Code that call all examples and check results: `/src/run-examples.ts`
|
||||
|
||||
## References
|
||||
|
||||
\- Documentation for the compiler can be found in the official repo: https://github.com/fluencelabs/aqua
|
||||
Documentation for the compiler can be found in the official repo: https://github.com/fluencelabs/aqua
|
@ -1,8 +0,0 @@
|
||||
import "@fluencelabs/aqua-lib/builtin.aqua"
|
||||
|
||||
func call(msg: string, msg2: string, node: string) -> ?string, string, string:
|
||||
on node:
|
||||
aaa: *string
|
||||
aaa <<- "aaa"
|
||||
res <- Op.identity(aaa)
|
||||
<- aaa, msg, msg2
|
@ -1,10 +0,0 @@
|
||||
(seq
|
||||
(call init_relay ("peer" "identify") [] result)
|
||||
(seq
|
||||
(call %init_peer_id% ("returnService" "run") [result])
|
||||
(seq
|
||||
(call %init_peer_id% ("returnService" "run") [result])
|
||||
(call %init_peer_id% ("returnService" "run") [result])
|
||||
)
|
||||
)
|
||||
)
|
@ -1,4 +0,0 @@
|
||||
(seq
|
||||
(call init_relay ("peer" "identify") [] result)
|
||||
(call %init_peer_id% ("returnService" "run") [result])
|
||||
)
|
1
test/deploy/.gitignore
vendored
1
test/deploy/.gitignore
vendored
@ -1 +0,0 @@
|
||||
app.deployement.json
|
@ -1,42 +0,0 @@
|
||||
{
|
||||
"services": {
|
||||
"history": {
|
||||
"dependencies": ["history_inmemory"],
|
||||
"node": "12D3KooWKEprYXUXqoV5xSBeyqrWLpQLLH4PXfvVkDJtmcqmh5V3"
|
||||
},
|
||||
"user_list": {
|
||||
"dependencies": ["user_list_inmemory"],
|
||||
"node": "12D3KooWKEprYXUXqoV5xSBeyqrWLpQLLH4PXfvVkDJtmcqmh5V3"
|
||||
}
|
||||
},
|
||||
"modules": {
|
||||
"history_inmemory": {
|
||||
"file": "history.wasm",
|
||||
"config": {
|
||||
"preopened_files": ["/tmp"],
|
||||
"mapped_dirs": { "history": "/tmp" }
|
||||
}
|
||||
},
|
||||
"user_list_inmemory": {
|
||||
"file": "user_list.wasm",
|
||||
"config": {}
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"set_tetraplet": {
|
||||
"file": "set_tetraplet.air",
|
||||
"variables": {
|
||||
"function": "is_authenticated",
|
||||
"json_path": "$.[\"is_authenticated\"]"
|
||||
},
|
||||
"node": "12D3KooWKEprYXUXqoV5xSBeyqrWLpQLLH4PXfvVkDJtmcqmh5V3"
|
||||
}
|
||||
},
|
||||
"script_storage": {
|
||||
"remove_disconnected": {
|
||||
"file": "remove_disconnected.air",
|
||||
"interval": 10,
|
||||
"node": "12D3KooWKEprYXUXqoV5xSBeyqrWLpQLLH4PXfvVkDJtmcqmh5V3"
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
@ -1,17 +0,0 @@
|
||||
(seq
|
||||
(call %init_peer_id% ({{user_list}} "is_authenticated") [] token)
|
||||
(seq
|
||||
(call %init_peer_id% ({{user_list}} "get_users") [] all_users)
|
||||
(fold all_users.$.users! u
|
||||
(par
|
||||
(seq
|
||||
(call u.$.relay_id! ("peer" "is_connected") [u.$.peer_id!] is_connected)
|
||||
(match is_connected ""
|
||||
(call %init_peer_id% ({{user_list}} "leave") [u.$.peer_id!])
|
||||
)
|
||||
)
|
||||
(next u)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
@ -1,7 +0,0 @@
|
||||
(seq
|
||||
(call init_relay ("op" "identity") [])
|
||||
(seq
|
||||
(call history__node (history "set_tetraplet") [user_list__node user_list function json_path] auth_result)
|
||||
(call %init_peer_id% (returnService "run") [auth_result])
|
||||
)
|
||||
)
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user