feat(builtin): add subnet.resolve

This commit is contained in:
shamsartem 2023-09-21 17:08:24 +02:00 committed by GitHub
parent 8447625cfa
commit 428365b886
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

15
subnet.aqua Normal file
View 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