def tailnet_hosting.go

near-architecture@0.9.1.0 · arc.bend:546

import near-architecture@0.9.1.0/arc.bend as Arc
import Base

546def tailnet_hosting.go(xs: List<&2, Container>) -> Nat:
547  match xs:
548    case []:
549      0n
550    case c <> rest:
551      match c:
552        case Container{_, _, _, _, _, exposure, cs, _, _, _, _, _}:
553          Nat.add(one_if(is_tailnet(exposure) && Nat.is_gt(count_in(Hosting{}, cs), 0n)), tailnet_hosting.go(rest))

Uses (10)

Used by (1)