mirror of
https://github.com/fluencelabs/aqua-lib
synced 2024-12-04 07:10:24 +00:00
feat(builtin): add subnet.resolve
This commit is contained in:
parent
8447625cfa
commit
428365b886
15
subnet.aqua
Normal file
15
subnet.aqua
Normal file
@ -0,0 +1,15 @@
|
||||
data Worker:
|
||||
pat_id: string
|
||||
host_id: string
|
||||
worker_id: []string
|
||||
|
||||
data SubnetResolveResult:
|
||||
-- Was call successful or not
|
||||
success: bool
|
||||
-- Error message. Will be null if the call is successful
|
||||
error: ?string
|
||||
workers: []Worker
|
||||
|
||||
service Subnet("subnet"):
|
||||
-- Returns a list of workers by deal id
|
||||
resolve(deal_id: string) -> SubnetResolveResult
|
Loading…
Reference in New Issue
Block a user