mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2025-04-27 10:32:14 +00:00
- Move marine-related part into FJS repo (fixes DXJ-184) - Move towards component-oriented architecture (fixes DXJ-183) - Different JS Client distros for node.js and web (fixes DXJ-185) - Update libp2p to 0.42.2 (fixes DXJ-26) - Add JS Client API (fixes DXJ-196, fixes DXJ-177, fixes DXJ-60) - Add Smoke test for JS Client web (fixes DXJ-253) --------- Co-authored-by: Anatoly Laskaris <github_me@nahsi.dev>
33 lines
844 B
Plaintext
33 lines
844 B
Plaintext
alias Bytes : []u8
|
||
|
||
data ServiceCreationResult:
|
||
success: bool
|
||
service_id: ?string
|
||
error: ?string
|
||
|
||
data ReadFileResult:
|
||
success: bool
|
||
content: ?string
|
||
error: ?string
|
||
|
||
data RemoveResult:
|
||
success: bool
|
||
error: ?string
|
||
|
||
alias ListServiceResult: []string
|
||
|
||
service Srv("single_module_srv"):
|
||
-- Used to create a service on a certain node
|
||
-- Arguments:
|
||
-- bytes – a base64 string containing the .wasm module to add.
|
||
-- Returns: service_id – the service ID of the created service.
|
||
create(wasm_b64_content: string) -> ServiceCreationResult
|
||
|
||
-- Used to remove a service from a certain node
|
||
-- Arguments:
|
||
-- service_id – ID of the service to remove
|
||
remove(service_id: string) -> RemoveResult
|
||
|
||
-- Returns a list of services ids running on a peer
|
||
list() -> ListServiceResult
|