Entry.switch_opts: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/daemon/entry.bend as Entry Lines 46-50 of cswap-bend-cli@0.1.0.0/daemon/entry.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/daemon/entry.bend&start_line=46&end_line=50 import Base import cswap-bend-cli@0.1.0.0/swlive.bend as L # How the daemon switches: the delay before the post-switch check # ($CSWAP_SWITCH_VERIFY_DELAY_MS, default 2000) and where the ownership lookup # goes ($CSWAP_SWITCH_ORACLE_FILE answers from a file; else the profile API). def switch_opts(d: Result<&1, &1, U32 & String, String>, o: Result<&1, &1, U32 & String, String>) -> L.Opts: L.Opts{Maybe.default(&2, U32, U32.read(env_or(d, "2000")), 2000), oracle_of(o)} Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe.default https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.read https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/entry.bend&name=env_or https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/entry.bend&name=oracle_of https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/swlive.bend&name=Opts