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-credit credit cargo crate

CreditApp: collateralized loans whose claims trade as cre8/loan/{id} and are paid pro rata to holders, reciprocal credit lines that mint tradeable IOUs (cre8/credit/{issuer}/{asset}), and rep-scaled unsecured credit. Every money write is one all-or-nothing manifold contract committed through commit_inline_exact.

crates/cre8-app-credit · level 11 · 5,862 lines (4,755 code) · 15 files · 298 fns (62 tests) · cyclomatic Σ 593

12workspace deps
0direct dependents
0transitive dependents
179calls out
0calls in
239call-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 · 16 calls · source referencenormal dep · 14 calls · source referencenormal dep · 48 calls · source referencenormal dep · 2 calls · source referencenormal dep · 19 calls · source referencenormal dep · 6 calls · source referencenormal dep · 39 calls · source referencenormal dep · 0 calls · source referencenormal dep · 0 calls · source referencenormal dep · 10 calls · source referencenormal dep · 4 calls · source referencenormal dep · 20 calls · source referencedev dep · 0 calls · incomplete scandev dep · 1 calls · source referenceapp-creditL11 · 4,755 linescre8-app-creditapp-manifoldL10 · 18,941 linescre8-app-manifoldapp-protocolL9 · 26,097 linescre8-app-protocolapp-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-optionsutil-view-htmlL0 · 1,660 linescre8-util-view-htmlapp-truthL7 · 20,485 linescre8-app-truthtest-helpersL29 · 557 linescre8-test-helpers

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). 298 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
concatsrc/app.rs:26fn41707.2
opt_strsrc/module.rs:48fn311702.9
LoanTerms::is_securedsrc/loan_model.rs:116method32502.8
actionssrc/app.rs:32fn41212.6
asset_slugsrc/line_model.rs:25fn31102.4
iou_assetsrc/line_model.rs:30fn31812.3
integer_unitssrc/exact.rs:150fn33202.2
payload_amountsrc/loan_contract.rs:76fn31902.1
LineSide::outstandingsrc/line_model.rs:86method311001.9
loan_contractsrc/loan_contract.rs:80fn31901.9
verified_callersrc/auth.rs:86fn31301.8
get_loansrc/loan.rs:80fn31721.7
req_strsrc/module.rs:53fn311611.6
connectsrc/app.rs:133fn112411.6
to_i64src/exact.rs:121fn31301.6
loan_claim_assetsrc/loan_model.rs:37fn31201.6
loan_vidsrc/loan_model.rs:205fn31311.5
Harness::fundsrc/e2e_tests.rs:72method91901.5
line_receiptsrc/line.rs:159fn201911.5
loan_receiptsrc/loan_contract.rs:207fn2011011.4
amount_owedsrc/exact.rs:36fn61221.4
line_contractsrc/line.rs:79fn31501.4
CallerAuthority::from_contextsrc/auth.rs:40method72131.4
net_rep_from_balancessrc/holdings.rs:67fn93211.4
loansrc/view_templates.rs:935fn321501.4
loan_contractssrc/loan_contract.rs:190fn131291.4
load_loansrc/loan_model.rs:217fn31331.3
interest_ceilsrc/exact.rs:27fn74221.3
LoanRecord::repayablesrc/loan_model.rs:192method33611.3
parse_loansrc/loan_model.rs:228fn31201.3
optional_unitssrc/exact.rs:138fn102411.3
commit_moneysrc/settle.rs:110fn175421.3
copy_viewsrc/app.rs:64fn164101.3
enginesrc/line.rs:892fn31421.3
credit_locksrc/settle.rs:48fn311301.2
PendingCommit::newsrc/settle.rs:143method311201.2
unsecured_limitsrc/unsecured.rs:76fn151301.2
pro_ratasrc/exact.rs:70fn277431.2
LoanRecord::claim_assetsrc/loan_model.rs:167method31411.2
payload_amountsrc/line.rs:83fn31401.2

Outside the workspace

anyhow hyperdb serde serde_json