Skip to content
1 viewer

rust 1,863,595 · typescript 235,976 · javascript 133,240 · python 20,426 · 6,417 files · digest b3b8c6dd2bb2 · built in 2.5 s · crystals off

crates/cre8-app-proposal/src/policy.rs

cre8-app-proposal · module policy · src · 1,330 lines (1,093 code, 148 comment) · sha 33f76c2716436eab

Items

struct ProposalTally struct OptionApproval struct TallyWeights static TEST_LOCK

Functions

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

functionkindlinescyclomaticcallerscalleesweightcrystal
create_fullsrc/policy.rs:103fn3411122.9
tally_weightedsrc/policy.rs:580fn1011232.5
test_scopesrc/policy.rs:677fn512712.4
proposal_scopesrc/policy.rs:683fn312702.4
votesrc/policy.rs:142fn2832552.3
add_approval_weightsrc/policy.rs:279fn103102.1
create_with_alternativessrc/policy.rs:73fn251512
add_choice_weightsrc/policy.rs:266fn127211.9
evaluate_strategysrc/policy.rs:307fn192131.5
createsrc/policy.rs:55fn1211311.5
compute_weighted_tallysrc/policy.rs:595fn323241.4
validate_approval_labelssrc/policy.rs:211fn142101.2
build_tallysrc/policy.rs:290fn162211.2
tallysrc/policy.rs:226fn61731
compute_tallysrc/policy.rs:236fn51220.9
yes_no_threshold_metsrc/policy.rs:327fn42100.9
approval_entriessrc/policy.rs:332fn172100.9
approval_winnersrc/policy.rs:350fn124100.9
aggregate_direct_votessrc/policy.rs:250fn72110.9
validate_delegation_choicesrc/policy.rs:173fn173100.9
validate_choice_compatibilitysrc/policy.rs:191fn194110.9
ratify_weightedsrc/policy.rs:637fn71140.9
ratify_lockedsrc/policy.rs:383fn425210.9
ctx_with_balancessrc/policy.rs:1031fn102510.8
ratifysrc/policy.rs:371fn71540.8
decayed_rep_weightssrc/policy.rs:483fn221130.8
undecayed_rep_weightssrc/policy.rs:506fn112110.8
cancelsrc/policy.rs:652fn102320.8
aggregate_terminal_votessrc/policy.rs:258fn72110.8
compute_voter_weightssrc/policy.rs:436fn213130.8
resolve_delegation_chainssrc/policy.rs:525fn476100.8
altsrc/policy.rs:925fn31400.7
one_peer_one_vote_weightssrc/policy.rs:458fn31100.7
stake_weighted_weightssrc/policy.rs:462fn112100.7
rep_weighted_weightssrc/policy.rs:474fn81120.7
create_and_opensrc/policy.rs:688fn161050.5
vote_rejects_when_not_opensrc/policy.rs:706fn171060.5
vote_overwrites_on_changesrc/policy.rs:725fn231060.5
simple_majority_passes_with_quorum_and_thresholdsrc/policy.rs:750fn231060.5
abstentions_dont_count_toward_threshold_denominatorsrc/policy.rs:775fn181060.5
ratify_returns_mutation_and_closessrc/policy.rs:795fn211070.5
ratify_rejects_when_tally_failssrc/policy.rs:818fn171050.5
ratify_twice_rejectssrc/policy.rs:837fn181060.5
cancel_only_by_proposersrc/policy.rs:857fn181060.5
supermajority_requires_two_thirdssrc/policy.rs:877fn201060.5
unanimous_requires_all_yessrc/policy.rs:899fn211060.5
approval_winning_option_returns_its_mutation_on_ratifysrc/policy.rs:930fn301080.5
approval_tie_at_top_does_not_declare_winnersrc/policy.rs:962fn241080.5
approval_rejects_unknown_labelsrc/policy.rs:988fn171060.5
approval_rejects_yesno_choicesrc/policy.rs:1007fn171060.5
stake_weighted_yesno_weighs_votes_by_balancesrc/policy.rs:1043fn251060.5
stake_weighted_zero_balance_doesnt_countsrc/policy.rs:1070fn241060.5
liquid_delegation_accumulates_weight_at_terminalsrc/policy.rs:1096fn251060.5
delegation_chain_resolves_through_two_hopssrc/policy.rs:1123fn231060.5
delegation_cycle_drops_to_abstainsrc/policy.rs:1148fn241060.5
delegation_to_unknown_voter_carries_weight_as_abstainsrc/policy.rs:1174fn211060.5
delegation_not_allowed_when_proposal_opts_outsrc/policy.rs:1197fn161050.5
rep_weighted_uses_ballot_helper_with_floor_at_onesrc/policy.rs:1215fn261060.5
rep_weighted_sums_across_multiple_tagssrc/policy.rs:1243fn231060.5
rep_weighted_no_rep_voter_still_counts_with_floor_onesrc/policy.rs:1268fn231060.5
self_delegation_rejectedsrc/policy.rs:1293fn191050.5
yesno_rejects_approve_choicesrc/policy.rs:1314fn161050.5

Source not readable from this process.