def oracle_of

cswap-bend-cli@0.1.0.0 · cliswitch.bend:21

import cswap-bend-cli@0.1.0.0/cliswitch.bend as Cliswitch
import Base
import cswap-bend-cli@0.1.0.0/swlive.bend as SwLive

21def oracle_of(r: Result<&1, &1, U32 & String, String>) -> SwLive.Oracle:
22  match r:
23    case Fail{e}:
24      SwLive.OHttp{}
25    case Done{p}:
26      SwLive.OFile{p}

Uses (5)

Used by (1)