Skip to content
1 viewer

rust 1,847,280 · typescript 232,434 · javascript 131,101 · python 19,227 · 6,362 files · digest 755e2ee30522 · built in 2.3 s · crystals off

cre8-app-prediction prediction cargo crate

PredictionApp extracted app crate.

crates/cre8-app-prediction · level 18 · 4,504 lines (3,815 code) · 17 files · 240 fns (70 tests) · cyclomatic Σ 497

13workspace deps
5direct dependents
24transitive dependents
55calls out
14calls in
203call-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.

Declared but never named in this crate's source: cre8-runtime-core (normal).

Files

lowhigh

File call graph

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

1 calls1 calls1 calls2 calls2 calls1 calls7 calls1 calls1 calls7 calls1 calls6 calls7 calls2 calls1 calls5 calls1 calls1 calls1 callsconnection.rsconnectioncrates/cre8-app-prediction/src/connection.rs · 20 call sites in/outballot_store.rsballot_storecrates/cre8-app-prediction/src/ballot_store.rs · 14 call sites in/outfederation.rsfederationcrates/cre8-app-prediction/src/federation.rs · 14 call sites in/outresolution.rsresolutioncrates/cre8-app-prediction/src/resolution.rs · 14 call sites in/outlive_market_state.rslive_market_statecrates/cre8-app-prediction/src/live_market_state.rs · 8 call sites in/outlive_markets.rslive_marketscrates/cre8-app-prediction/src/live_markets.rs · 8 call sites in/outrun.rsbin::prediction_smoke::runcrates/cre8-app-prediction/src/bin/prediction_smoke/run.rs · 5 call sites in/outmarket_observation.rsmarket_observationcrates/cre8-app-prediction/src/market_observation.rs · 4 call sites in/outballot.rsballotcrates/cre8-app-prediction/src/ballot.rs · 3 call sites in/outcontract.rscontractcrates/cre8-app-prediction/src/contract.rs · 3 call sites in/outapp.rsappcrates/cre8-app-prediction/src/app.rs · 1 call sites in/outmain.rsbin::prediction_smoke::maincrates/cre8-app-prediction/src/bin/prediction_smoke/main.rs · 1 call sites in/outobserved_market.rsobserved_marketcrates/cre8-app-prediction/src/observed_market.rs · 1 call sites in/outpolymarket.rspolymarketcrates/cre8-app-prediction/src/polymarket.rs · 1 call sites in/outquestion_candidates.rsquestion_candidatescrates/cre8-app-prediction/src/question_candidates.rs · 1 call sites in/out

Heaviest functions

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

functionkindlinescyclomaticcallerscalleesweightcrystal
compute_probability_overlaysrc/pricing.rs:52fn4210703.5
derive_ballot_idsrc/ballot_store.rs:38fn51403.5
matched_event_outcomesrc/resolution.rs:190fn92102.8
compute_prediction_resolutionsrc/resolution.rs:153fn3631812.7
outcomessrc/resolution.rs:390fn611202.4
ResolutionBallot::tallysrc/ballot.rs:52method184242.4
marketsrc/observed_market.rs:229fn211802.2
connectsrc/connection.rs:139fn256372.2
positionsrc/resolution.rs:372fn1731102.2
StoredBallot::newsrc/ballot_store.rs:72method131712
ObservedMarket::validatesrc/observed_market.rs:59method5329102
list_ballotssrc/ballot_store.rs:147fn103341.9
list_open_ballotssrc/ballot_store.rs:158fn61521.9
compute_payout_tablesrc/resolution.rs:106fn3981001.9
readsrc/live_market_state.rs:62fn61201.8
ResolutionBallot::newsrc/ballot.rs:37method31801.8
ObservedMarket::contract_specssrc/observed_market.rs:115method371611.8
unregistered_winning_outcome_responsesrc/connection.rs:389fn151101.8
ResolutionBallot::cast_votesrc/ballot.rs:41method1031011.7
settleable_event_outcomessrc/connection.rs:340fn143251.5
require_registered_winning_outcomesrc/connection.rs:355fn172211.5
prediction_resolvesrc/connection.rs:240fn462361.4
register_prediction_contractsrc/contract.rs:132fn151241.4
loadsrc/live_market_state.rs:77fn2512711.4
advancesrc/live_market_state.rs:113fn12630791.4
fixture_inputssrc/resolution.rs:493fn101621.4
observe_marketssrc/market_observation.rs:58fn5513231.4
votesrc/ballot.rs:115fn101701.4
prediction_resolution_input_hashsrc/resolution.rs:328fn201411.3
prediction_smoke_contextsrc/bin/prediction_smoke/run.rs:170fn51111.2
directorysrc/live_market_state.rs:243fn91601.2
PredictionContractSpec::outcome_metadatasrc/contract.rs:105method141311.2
parse_actionsrc/connection.rs:121fn164201.2
prediction_open_ballotsrc/connection.rs:472fn113231.2
prediction_cast_votesrc/connection.rs:530fn314261.2
ballot_vidsrc/ballot_store.rs:32fn31201.2
apply_prediction_resolutionsrc/resolution.rs:218fn101251.2
required_asset_namespacesrc/connection.rs:405fn71101.2
ledger_itersrc/bin/prediction_smoke/run.rs:333fn81101.2
upsert_ballotsrc/ballot_store.rs:112fn264421.2

Outside the workspace

anyhow chrono hyperdb serde serde_json sha2