diff --git a/workers.aqua b/workers.aqua index 50a1750..c559d26 100644 --- a/workers.aqua +++ b/workers.aqua @@ -4,9 +4,13 @@ import PeerId from "./builtin.aqua" -- Available only on rust peers service Worker("worker"): - -- Creates new worker associated with `deal_id`. - -- Throws an error if worker exists. - create(deal_id: string) -> PeerId + -- Creates new worker associated with `deal_id` and allows specifying custom `cu_ids`. + -- Arguments: + -- deal_id - ID of the deal + -- cu_ids – an array of target compute unit IDs + -- Returns: PeerId - worker ID if creation was successful + -- Throws an error if a worker exists. + create(deal_id: string, cu_ids: []string) -> PeerId -- Returns worker peer id associated with `deal_id`. -- Returns nil if worker doesn't exist.