Cleanup befor moving to Aqua repo (#92)

This commit is contained in:
Dima 2023-06-15 16:58:17 +03:00 committed by GitHub
parent d9f42dd7ef
commit a7d7cd5c4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 1 additions and 92 deletions

View File

@ -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

View File

@ -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

View File

@ -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])
)
)
)

View File

@ -1,4 +0,0 @@
(seq
(call init_relay ("peer" "identify") [] result)
(call %init_peer_id% ("returnService" "run") [result])
)

View File

@ -1 +0,0 @@
app.deployement.json

View File

@ -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.

View File

@ -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)
)
)
)
)

View File

@ -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.