boneyard93501 ba79f5ce9c
NEAR integration with Fluence and Aqua (#38)
* upadte demo

* init repo

* update curl params

* add string sub alteantive, update aqua

* update

* bump versions, remove unused files

* update aqua

* Add section 5: Decentralized Oracles With Fluence And Aqua (#35)

* init quickstart-5

* update consensus calc, tests

* update serivce, aqua

* update service and deploymnt

* update aqua, air

* add seq version

* update aquq

* update examples

* add fold, no fold to aqua

* update par

* update service, aqua with err value

* update tests with err_val

* add connect check, remove peer.connect funcs

* update Readme

* move body to gitbook

* update fldist run_air to aqua run

* bump versions

* add fldist disclaimer, update version in fluence js client

* update services, fjs node

* update urls

* update dialer

* change multiaddr

* Add 'tcp' to multiaddr

* Aqua examples: checking npm version in aqua-ipfs-integration (#37)

* update service id

* update signer and services, readme

* add functon

* move repo

* update docs

* update Marine section

* Update README.md

* update error mapping

* remove contract.rs

Co-authored-by: folex <0xdxdy@gmail.com>
Co-authored-by: Pavel <Pavel.Murygin@gmail.com>
2021-12-18 14:56:34 -06:00

44 lines
1.9 KiB
Plaintext

data CeramicResult:
ret_code: i32
stderr: string
stdout: string
service CeramicAdapter("service-id"):
ceramic_request(args: []string) -> CeramicResult
create_schema(schema: string) -> CeramicResult
create_stream(payload: string) -> CeramicResult
show(stream_id: string) -> CeramicResult
state(stream_id: string) -> CeramicResult
update(stream_id: string, payload: string) -> CeramicResult
http_streams(url:string, port: u32, stream_id:string) -> string
-- aqua function to create stream and return stream id
func create(payload:string, node:string, service_id:string) -> string:
on node:
CeramicAdapter service_id
create_res <- CeramicAdapter.create_stream(payload)
<- create_res.stdout
-- aqua function to create stream and return CeramicResult
func create_obj(payload:string, node:string, service_id:string) -> CeramicResult:
on node:
CeramicAdapter service_id
create_res <- CeramicAdapter.create_stream(payload)
<- create_res
-- aqua function to create stream, show, update and return stream id, show and update as stdout strings
func roundtrip(payload:string, payload_two: string, node:string, service_id:string) -> string, string, string:
on node:
CeramicAdapter service_id
create_res <- CeramicAdapter.create_stream(payload) --< return the stream_id in stdout
show_res <- CeramicAdapter.show(create_res.stdout) --< use the stream_id
update_res <- CeramicAdapter.update(create_res.stdout, payload_two) --< update the stream
<- create_res.stdout, show_res.stdout, update_res.stdout --< return the stream id, the show result, show result afer update
func http_show_stream(stream_id: string, node: string, service_id:string) -> string:
on node:
CeramicAdapter service_id
res <- CeramicAdapter.http_streams("127.0.0.1", 7007, stream_id)
<- res