def oracle_of
import cswap-bend-cli@0.1.0.0/cliswitch.bend as Cliswitchimport 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}