From 428365b886f0690090fa0c7241111c62ab792d9c Mon Sep 17 00:00:00 2001 From: shamsartem Date: Thu, 21 Sep 2023 17:08:24 +0200 Subject: [PATCH] feat(builtin): add subnet.resolve --- subnet.aqua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 subnet.aqua 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