add compose.air

This commit is contained in:
folex 2021-02-26 12:46:20 +03:00
parent 4104c35427
commit 6496dd5331
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,13 @@
(xor
(seq
(seq
(seq
(call relay (curl "download") ["https://fluence.network/img/svg/logo_new.svg"] contents)
(call relay (storage "put") ["logo.svg" contents.$.stdout!] ret_code)
)
(call relay (storage "get") ["logo.svg"] bytes)
)
(call %init_peer_id% (returnService "run") [ret_code bytes])
)
(call %init_peer_id% (returnService "run") [%last_error%])
)

View File

@ -0,0 +1,15 @@
#!/bin/sh -euo pipefail
./build.sh
echo "Deploying storage"
(
cd artifacts
fldist new_service --name "local_storage" --modules local_storage.wasm:local_storage.json
)
echo "\n\nDeploying curl"
(
cd artifacts
fldist new_service --name "curl_adapter" --modules curl_adapter.wasm:curl_adapter.json
)