diff --git a/subnet.aqua b/subnet.aqua new file mode 100644 index 0000000..68b8d4e --- /dev/null +++ b/subnet.aqua @@ -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