mirror of
https://github.com/fluencelabs/examples
synced 2025-05-10 18:07:16 +00:00
16 lines
404 B
Plaintext
16 lines
404 B
Plaintext
|
data JsonString:
|
||
|
value: string
|
||
|
success: bool
|
||
|
error: string
|
||
|
|
||
|
service Logger("logger"):
|
||
|
log(s: []string)
|
||
|
|
||
|
service EthCaller:
|
||
|
eth_call(uri: string, method: string, json_args: []string) -> JsonString
|
||
|
|
||
|
func call(uri: string, method: string, json_args: []string, serviceId: string) -> JsonString:
|
||
|
EthCaller serviceId
|
||
|
on HOST_PEER_ID:
|
||
|
res <- EthCaller.eth_call(uri, method, json_args)
|
||
|
<- res
|