Skip to content
1 viewer

rust 1,961,941 · typescript 233,850 · javascript 141,145 · python 22,871 · 6,801 files · digest 6d882eacc8db · built in 12.5 s · crystals off

cre8-app-mark mark cargo crate

MarkApp: the one price oracle. mark_price(asset, quote) resolves a strictly positive exact Ratio from a fresh manual override, the last cleared matching transaction, the provider tick-tape mid, or (options) a Black-Scholes theoretical price, and flags stale marks instead of passing them off as fresh.

crates/cre8-app-mark · level 17 · 2,938 lines (2,346 code) · 9 files · 156 fns (38 tests) · cyclomatic Σ 322

14workspace deps
2direct dependents
2transitive dependents
124calls out
26calls in
126call-graph weight
0.0%exact crystals

Neighbourhood

Left: crates that declare this one. Right: crates it declares (dev-dependencies included). Edge width grows with resolved calls.

normal dep · 13 calls · source referencenormal dep · 1 calls · source referencenormal dep · 2 calls · source referencenormal dep · 12 calls · source referencenormal dep · 6 calls · source referencenormal dep · 4 calls · source referencenormal dep · 9 calls · source referencenormal dep · 3 calls · source referencenormal dep · 4 calls · source referencenormal dep · 7 calls · source referencenormal dep · 2 calls · source referencenormal dep · 0 calls · source referencenormal dep · 0 calls · source referencenormal dep · 15 calls · source referencenormal dep · 46 calls · source referencedev dep · 13 calls · source referencenormal dep · 13 calls · source referenceapp-markL17 · 2,346 linescre8-app-markapp-derivativesL18 · 4,175 linescre8-app-derivativesapp-matching-modelL4 · 7,752 linescre8-app-matching-modelapp-matching-storeL6 · 195 linescre8-app-matching-storeapp-protocolL9 · 26,097 linescre8-app-protocolapp-providerL16 · 71,707 linescre8-app-providerapp-truthL7 · 20,485 linescre8-app-truthapp-view-libL8 · 89,193 linescre8-app-view-libplatform-envL3 · 316 linescre8-platform-envplatform-timeL3 · 65 linescre8-platform-timeruntime-app-typesL6 · 2,860 linescre8-runtime-app-typesruntime-contractsL0 · 6,322 linescre8-runtime-contractsruntime-coreL2 · 747 linescre8-runtime-coreruntime-hostL1 · 1,649 linescre8-runtime-hostutil-graph-vertexL0 · 173 linescre8-util-graph-vertexutil-optionsL0 · 2,350 linescre8-util-optionstest-helpersL29 · 557 linescre8-test-helpersapp-paperL18 · 5,382 linescre8-app-paper

Files

lowhigh

File call graph

Resolved calls between this crate's files, callers left of callees.

Heaviest functions

By call-graph weight (PageRank; 1.0 is the average function). 156 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
normalize_idsrc/model.rs:234fn31602.7
segmentssrc/symbols.rs:33fn31202.5
parse_option_idsrc/symbols.rs:86fn2441052.4
MarkConfig::from_envsrc/model.rs:210method51822.2
parse_expiry_mssrc/symbols.rs:112fn146322.2
MarkConfig::defaultsrc/model.rs:197trait impl81302.1
resolve_marksrc/oracle.rs:94fn41322
tape_symbolsrc/symbols.rs:39fn167311.9
set_manual_marksrc/lib.rs:59fn181631.8
is_leapsrc/symbols.rs:127fn33101.7
OverrideAuthority::authorizesrc/authority.rs:51method154501.6
mark_price_withsrc/oracle.rs:77fn91911.5
resolve_cachedsrc/oracle.rs:111fn52102111.5
days_in_monthsrc/symbols.rs:131fn85111.4
days_from_civilsrc/symbols.rs:142fn93101.4
is_usd_numerairesrc/symbols.rs:57fn31411.4
gatesrc/authority.rs:77fn71401.3
Rejected::newsrc/model.rs:176method31601.3
textsrc/connection.rs:60fn31501.2
mark_pricesrc/oracle.rs:72fn31521.2
load_volsrc/model.rs:430fn31421.2
vol_vertex_idsrc/model.rs:250fn31221.2
MarkConfig::with_ttl_mssrc/model.rs:216method41201.2
MarkPairRecord::newsrc/model.rs:287method121301.1
configsrc/tests.rs:23fn311021.1
upsert_manualsrc/model.rs:372fn92341.1
validate_sigmasrc/model.rs:415fn73501.1
recordsrc/view_templates.rs:150fn181321.1
load_recent_clearssrc/oracle.rs:291fn71131.1
require_idsrc/model.rs:441fn32301.1
pair_keysrc/model.rs:238fn31201.1
pair_vertex_idsrc/model.rs:242fn31231.1
manual_vertex_idsrc/model.rs:246fn31231
age_labelsrc/view_templates.rs:88fn128201
swapsrc/tests.rs:49fn181811
build_marks_treesrc/view_templates.rs:102fn253341
now_mssrc/connection.rs:56fn31410.9
fresh_mark_pricesrc/oracle.rs:88fn31520.9
Mark::freshsrc/model.rs:134method31200.9
list_pairssrc/model.rs:353fn61410.9

Outside the workspace

anyhow hyperdb serde serde_json