~/bend-docscommunity

daemon/dec.bend relies on unsafe/foreign

raw source on the hub · import cswap-bend-cli@0.1.0.0/daemon/dec.bend as Dec

9 imports
import Base
import ../json.bend as Json
import ../swlive.bend as L
import ../store/base.bend as SBase
import ../store/seq.bend as SSeq
import ../clock.bend as Clock
import ./events.bend as Ev
import ./cadence.bend as Cad
import ./config.bend as Cfg

Types

type Dec source · line 15 · raw

Data

type TickRes source · line 21 · raw

Data

The events of one tick, in order, and the sleeper's facts.

type Ctx source · line 25 · raw

Data

What tick was handed besides the decision.

Definitions

def sel_o source · line 28 · raw

@+c:Bool -> @x:0x0717344745a30ebad1f19045228e8f18/daemon/cadence.Outcome -> @y:0x0717344745a30ebad1f19045228e8f18/daemon/cadence.Outcome -> 0x0717344745a30ebad1f19045228e8f18/daemon/cadence.Outcome

def blocked_reason source · line 35 · raw

@+r:String -> Bool

def info source · line 38 · raw

@o:0x0717344745a30ebad1f19045228e8f18/daemon/cadence.Outcome -> @+until:Maybe<&2, U32> -> @+long:Bool -> @+idle:Bool -> @+np:Maybe<&2, U32> -> 0x0717344745a30ebad1f19045228e8f18/daemon/cadence.Info

def one source · line 41 · raw

@i:0x0717344745a30ebad1f19045228e8f18/daemon/cadence.Info -> @+e:0x0717344745a30ebad1f19045228e8f18/json.Json -> TickRes

def iso_opt source · line 44 · raw

@+m:Maybe<&2, U32> -> Maybe<&2, String>

def ctx_ts source · line 51 · raw

@+c:Ctx -> String

def ctx_np source · line 56 · raw

@+c:Ctx -> Maybe<&2, U32>

def none_res source · line 61 · raw

@+c:Ctx -> @+reason:String -> @+detail:String -> TickRes

def exhausted_res source · line 64 · raw

@+c:Ctx -> @+earliest:Maybe<&2, U32> -> TickRes

def error_res source · line 68 · raw

@+c:Ctx -> @+msg:String -> TickRes

A failed tick: the error as an event, exit 1.

def ctx_now source · line 73 · raw

@+c:Ctx -> U32

def ctx_cfg source · line 78 · raw

@+c:Ctx -> 0x0717344745a30ebad1f19045228e8f18/daemon/config.Cfg

def ctx_store source · line 83 · raw

@+c:Ctx -> 0x0717344745a30ebad1f19045228e8f18/store/base.Ctx

def ctx_opts source · line 88 · raw

@+c:Ctx -> 0x0717344745a30ebad1f19045228e8f18/swlive.Opts

def ctx_active source · line 93 · raw

@+c:Ctx -> 0x0717344745a30ebad1f19045228e8f18/json.Json

def ctx_dry source · line 98 · raw

@+c:Ctx -> Bool